def test_run_aea_positive_mock(self): """Test run_aea method for positive result (mocked).""" ctx = mock.Mock() aea = mock.Mock() ctx.config = {"skip_consistency_check": True} with mock.patch("aea.cli.run._build_aea", return_value=aea): run_aea(ctx, ["author/name:0.1.0"], "env_file", False)
def test_run_aea_negative(self, *mocks): """Test run_aea method for negative result.""" ctx = mock.Mock() ctx.config = {"skip_consistency_check": True} with self.assertRaises(ClickException): run_aea(ctx, ["author/name:0.1.0"], "env_file", False)