From 1f8351b593394efc9f20533776f4e48a018bbb56 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Tue, 17 Jul 2018 12:38:54 -0300 Subject: [PATCH] Adapt YAML config integration tests Use `__init__.py` instead of `urls.py` since the init file is more likely to exist than the other one. This is required to import these tests into the corporate site where the `urls.py` doesn't exist and all these tests fail because of that. --- readthedocs/rtd_tests/tests/test_config_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readthedocs/rtd_tests/tests/test_config_integration.py b/readthedocs/rtd_tests/tests/test_config_integration.py index 4d43b194567..934b886acac 100644 --- a/readthedocs/rtd_tests/tests/test_config_integration.py +++ b/readthedocs/rtd_tests/tests/test_config_integration.py @@ -45,7 +45,7 @@ class LoadConfigTests(TestCase): def setUp(self): self.project = get(Project, main_language_project=None, - install_project=False, requirements_file='urls.py') + install_project=False, requirements_file='__init__.py') self.version = get(Version, project=self.project) def test_python_supported_versions_default_image_1_0(self, load_config): @@ -201,4 +201,4 @@ def test_requirements_file(self, load_config): # Respects the requirements file from the project settings load_config.side_effect = create_load() config = load_yaml_config(self.version) - self.assertEqual(config.requirements_file, 'urls.py') + self.assertEqual(config.requirements_file, '__init__.py')