Skip to content

Commit

Permalink
Merge pull request #625 from fetchai/fix/import_paths
Browse files Browse the repository at this point in the history
fix import paths
  • Loading branch information
DavidMinarsch authored Jan 12, 2020
2 parents a6411d3 + f0bceda commit 86a7d6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ def test_serialisation_fipa(self):
dialogue_reference=(str(0), ''),
target=1,
query=None)
with mock.patch("packages.protocols.fipa.message.FIPAMessage.Performative") as mock_performative_enum:
with mock.patch("packages.fetchai.protocols.fipa.message.FIPAMessage.Performative") as mock_performative_enum:
mock_performative_enum.CFP.value = "unknown"
FIPASerializer().encode(msg), "Raises Value Error"
with pytest.raises(ValueError):
Expand Down Expand Up @@ -495,7 +495,7 @@ def test_serialisation_fipa(self):
target=0,
performative=FIPAMessage.Performative.CFP,
query=b"hello")
with mock.patch("packages.protocols.fipa.message.FIPAMessage.Performative") as mock_performative_enum:
with mock.patch("packages.fetchai.protocols.fipa.message.FIPAMessage.Performative") as mock_performative_enum:
mock_performative_enum.CFP.value = "unknown"
fipa_msg = fipa_pb2.FIPAMessage()
fipa_msg.message_id = cfp_msg.get("message_id")
Expand Down
1 change: 0 additions & 1 deletion tests/test_packages/test_connections/test_tcp/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from asyncio import CancelledError

import packages
# import packages.connections.tcp.base
import pytest
import unittest.mock

Expand Down
2 changes: 1 addition & 1 deletion tests/test_packages/test_protocols/test_fipa.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_performative_match_accept():
# dialogue_reference=(str(0), ''),
# target=1)

# with mock.patch("packages.protocols.fipa.message.FIPAMessage.Performative")\
# with mock.patch("packages.fetchai.protocols.fipa.message.FIPAMessage.Performative")\
# as mock_performative_enum:
# mock_performative_enum.ACCEPT.value = "unknown"
# assert not msg.check_consistency(),\
Expand Down

0 comments on commit 86a7d6d

Please sign in to comment.