Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/v11 test updates #21

Merged
merged 9 commits into from
Oct 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test integration and working
  • Loading branch information
craig8 committed Oct 25, 2024
commit d8a503c7c746bb21509b04b176bf995cc72d5920
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -31,6 +31,8 @@ optional = true

[tool.poetry.group.dev.dependencies]
volttron-testing = {path = "../volttron-testing", develop = true}
volttron-lib-zmq = {path = "../volttron-lib-zmq", develop = true}
volttron-lib-auth = {path = "../volttron-lib-auth", develop = true}

# These will either be brought in elsewhere if you have a multi-project environment or uncomment locally to work
# against a specific path.
14 changes: 8 additions & 6 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
@@ -27,6 +27,7 @@
from unittest.mock import MagicMock

import gevent
from cattrs.fns import identity
from volttrontesting import PlatformWrapper
from volttron.client.known_identities import CONTROL

@@ -51,7 +52,7 @@ def test_startup_instance(volttron_instance: PlatformWrapper):

assert started
assert vi.is_agent_running(auuid)
listening = vi.build_agent()
listening = vi.build_agent(identity="world")
listening.callback = MagicMock(name="callback")
listening.callback.reset_mock()

@@ -77,8 +78,9 @@ def test_startup_instance(volttron_instance: PlatformWrapper):
assert 'TimeStamp' in call_args[4]
assert 'GOOD' in call_args[5]

stopped = vi.stop_agent(auuid)
print('STOPPED: ', stopped)
removed = vi.remove_agent(auuid)
print('REMOVED: ', removed)
listening.core.stop()
# TODO: Setup test in platform testing to deal with the stop issue.
# stopped = vi.stop_agent(auuid)
# print('STOPPED: ', stopped)
# removed = vi.remove_agent(auuid)
# print('REMOVED: ', removed)
# listening.core.stop()
Loading