def test_deploy( self, mocker: MockerFixture, runway_config: MockRunwayConfig, runway_context: MockRunwayContext, ) -> None: """Test deploy.""" mock_deployment = mocker.patch(f"{MODULE}.components.Deployment") deployments = MagicMock() obj = Runway(runway_config, runway_context) # type: ignore assert not obj.deploy() assert runway_context.command == "deploy" mock_deployment.run_list.assert_called_once_with( action="deploy", context=runway_context, deployments=runway_config.deployments, future=runway_config.future, variables=runway_config.variables, ) assert not obj.deploy(deployments) mock_deployment.run_list.assert_called_with( action="deploy", context=runway_context, deployments=deployments, future=runway_config.future, variables=runway_config.variables, )
def test_deploy(self, mock_deployment, runway_config, runway_context): """Test deploy.""" deployments = MagicMock() obj = Runway(runway_config, runway_context) assert not obj.deploy() assert runway_context.command == "deploy" mock_deployment.run_list.assert_called_once_with( action="deploy", context=runway_context, deployments=runway_config.deployments, future=runway_config.future, variables=runway_config.variables, ) assert not obj.deploy(deployments) mock_deployment.run_list.assert_called_with( action="deploy", context=runway_context, deployments=deployments, future=runway_config.future, variables=runway_config.variables, )