def test_submit_forwards_default_arguments_to_command_line_job_submission(self):
    self.patch('foundations_core_cli.job_submission.submit_job.submit', MockCommandLineJobDeployer)
    expected_arguments = Mock()
    expected_arguments.scheduler_config = self.fake_env
    expected_arguments.job_directory = self.fake_directory
    expected_arguments.entrypoint = None
    expected_arguments.project_name = None
    expected_arguments.ram = None
    expected_arguments.num_gpus = None
    expected_arguments.stream_job_logs = True
    expected_arguments.command = [self.command]
    CommandLineInterface(['submit', self.fake_env, self.fake_directory, self.command]).execute()
    arguments = MockCommandLineJobDeployer.arguments
    self._assert_submit_arguments_equal(expected_arguments, arguments)
def test_submit_forwards_default_arguments_to_command_line_job_submission(self):
    self.patch('foundations_core_cli.job_submission.submit_job.submit', MockCommandLineJobDeployer)
    expected_arguments = Mock()
    expected_arguments.scheduler_config = self.fake_env
    expected_arguments.job_directory = self.fake_directory
    expected_arguments.entrypoint = None
    expected_arguments.project_name = None
    expected_arguments.ram = None
    expected_arguments.num_gpus = None
    expected_arguments.stream_job_logs = True
    expected_arguments.command = [self.command]
    CommandLineInterface(['submit', self.fake_env, self.fake_directory, self.command]).execute()
    arguments = MockCommandLineJobDeployer.arguments
    self._assert_submit_arguments_equal(expected_arguments, arguments)