def test_run_list(self, fx_deployments, monkeypatch, runway_context): """Test run_list.""" mock_deploy = MagicMock() monkeypatch.setattr(Module, "deploy", mock_deploy) assert not Module.run_list( action="deploy", context=runway_context, modules=fx_deployments.load("simple_parallel_module").modules, variables=MagicMock(), deployment=MagicMock(), future=MagicMock(), ) assert mock_deploy.call_count == 2
def test_run_list( self, fx_deployments: YamlLoaderDeployment, mocker: MockerFixture, runway_context: MockRunwayContext, ) -> None: """Test run_list.""" mock_deploy = mocker.patch.object(Module, "deploy") assert not Module.run_list( action="deploy", context=runway_context, modules=fx_deployments.load("simple_parallel_module").modules, variables=MagicMock(), deployment=MagicMock(), future=MagicMock(), ) assert mock_deploy.call_count == 2