@@ -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