Skip to content

Commit 1f8351b

Browse files
committed
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.
1 parent ebf0987 commit 1f8351b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readthedocs/rtd_tests/tests/test_config_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class LoadConfigTests(TestCase):
4545

4646
def setUp(self):
4747
self.project = get(Project, main_language_project=None,
48-
install_project=False, requirements_file='urls.py')
48+
install_project=False, requirements_file='__init__.py')
4949
self.version = get(Version, project=self.project)
5050

5151
def test_python_supported_versions_default_image_1_0(self, load_config):
@@ -201,4 +201,4 @@ def test_requirements_file(self, load_config):
201201
# Respects the requirements file from the project settings
202202
load_config.side_effect = create_load()
203203
config = load_yaml_config(self.version)
204-
self.assertEqual(config.requirements_file, 'urls.py')
204+
self.assertEqual(config.requirements_file, '__init__.py')

0 commit comments

Comments
 (0)