Skip to content

Commit 18db783

Browse files
authored
Merge pull request #608 from 8ball030/fix/enabled-tests
Fix/enabled tests
2 parents b4cc391 + b1462ca commit 18db783

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def dummy_agent_tim(test_packages_filesystem) -> Path:
104104
if not task.is_done or task.is_failed:
105105
raise ValueError(task.client.output)
106106
os.chdir(agent.name)
107-
return True
107+
return Path.cwd()
108108

109109

110110
@pytest.fixture

tests/test_scaffold.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,16 +89,17 @@ def test_scaffold_fsm_with_aea_run(cli_runner, spec, dummy_agent_tim):
8989
assert "An error occurred during instantiation of connection valory" in result.output
9090

9191

92-
@pytest.mark.skip(reason="Needs chain contracts update")
93-
def test_scaffold_protocol(cli_runner, dummy_agent_tim, caplog):
92+
def test_scaffold_protocol(cli_runner, dummy_agent_tim):
9493
"""Test scaffold protocol."""
9594

9695
path = Path.cwd() / ".." / "tests" / "data" / "dummy_protocol.yaml"
97-
command = ["scaffold", "protocol", str(path)]
98-
result = cli_runner.invoke(cli, command)
96+
command = ["adev", "scaffold", "protocol", str(path)]
97+
runner = cli_runner(command)
98+
result = runner.execute()
99+
assert result, runner.output
99100

100-
assert result.exit_code == 0, result.output
101-
assert f"New protocol scaffolded at {dummy_agent_tim}" in caplog.text
101+
assert runner.return_code == 0, result.output
102+
assert "New protocol scaffolded" in runner.output
102103

103104
protocol = read_protocol(str(path))
104105
original_content = path.read_text(encoding=DEFAULT_ENCODING)

0 commit comments

Comments
 (0)