Пример #1
0
 def check_run_no_app_entry(dirname):
     project_dir_disable_dedicated_env(dirname)
     result = run_command(dirname,
                          UI_MODE_TEXT_ASSUME_YES_DEVELOPMENT,
                          conda_environment=None,
                          command_name=None,
                          extra_command_args=None)
     assert result is None
Пример #2
0
    def check_run(dirname):
        project_dir_disable_dedicated_env(dirname)

        result = run_command(dirname,
                             UI_MODE_TEXT_ASSUME_YES_DEVELOPMENT,
                             conda_environment=None,
                             command_name=None,
                             extra_command_args=None)
        assert result is None
        assert 'file' in executed
        assert 'args' in executed
        assert 'env' in executed
        assert executed['file'].endswith(python_exe)
        assert executed['args'][0].endswith(python_exe)
        assert '--version' == executed['args'][1]
        assert 'bar' == executed['env']['FOO']