Skip to content

Commit 656354f

Browse files
committed
combine buildertest
1 parent ebc0a52 commit 656354f

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

readthedocs/rtd_tests/tests/test_doc_builder.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
@override_settings(PRODUCTION_DOMAIN="readthedocs.org")
20-
class SphinxBuilderTest(TestCase):
20+
class BuilderTest(TestCase):
2121
fixtures = ["test_data", "eric"]
2222

2323
def setUp(self):
@@ -35,6 +35,9 @@ def setUp(self):
3535
BaseSphinx.type = "base"
3636
BaseSphinx.sphinx_build_dir = tempfile.mkdtemp()
3737
BaseSphinx.relative_output_dir = "_readthedocs/"
38+
BaseMkdocs.type = "base"
39+
BaseMkdocs.mkdocs_build_dir = tempfile.mkdtemp()
40+
BaseMkdocs.relative_output_dir = "_readthedocs/"
3841

3942
@patch("readthedocs.doc_builder.backends.sphinx.BaseSphinx.docs_dir")
4043
@patch("readthedocs.doc_builder.backends.sphinx.BaseSphinx.run")
@@ -116,25 +119,6 @@ def test_multiple_conf_py(
116119
base_sphinx.show_conf()
117120

118121

119-
@override_settings(PRODUCTION_DOMAIN="readthedocs.org")
120-
class MkdocsBuilderTest(TestCase):
121-
fixtures = ["test_data", "eric"]
122-
123-
def setUp(self):
124-
self.project = Project.objects.get(slug="pip")
125-
self.version = self.project.versions.first()
126-
127-
self.build_env = mock.MagicMock()
128-
self.build_env.project = self.project
129-
self.build_env.version = self.version
130-
self.build_env.build = {
131-
"id": 123,
132-
}
133-
self.build_env.api_client = mock.MagicMock()
134-
135-
BaseMkdocs.type = "base"
136-
BaseMkdocs.mkdocs_build_dir = tempfile.mkdtemp()
137-
BaseMkdocs.relative_output_dir = "_readthedocs/"
138122

139123
@patch("readthedocs.doc_builder.backends.mkdocs.BaseMkdocs.docs_dir")
140124
@patch("readthedocs.doc_builder.backends.mkdocs.BaseMkdocs.run")

0 commit comments

Comments
 (0)