Skip to content

Commit 770280f

Browse files
committed
Fix tests
1 parent e1443bf commit 770280f

File tree

1 file changed

+1
-30
lines changed

1 file changed

+1
-30
lines changed

readthedocs/rtd_tests/tests/test_config_integration.py

+1-30
Original file line numberDiff line numberDiff line change
@@ -699,36 +699,6 @@ def test_sphinx_configuration_default(
699699
append_conf.assert_called_once()
700700
move.assert_called_once()
701701

702-
@pytest.mark.skip
703-
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.move')
704-
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.append_conf')
705-
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.run')
706-
def test_sphinx_configuration_default(
707-
self, run, append_conf, move, checkout_path, tmpdir):
708-
"""Should be default to find a conf.py file."""
709-
checkout_path.return_value = str(tmpdir)
710-
711-
apply_fs(tmpdir, {'conf.py': ''})
712-
self.create_config_file(tmpdir, {})
713-
self.project.conf_py_file = ''
714-
self.project.save()
715-
716-
update_docs = self.get_update_docs_task()
717-
config = update_docs.config
718-
python_env = Virtualenv(
719-
version=self.version,
720-
build_env=update_docs.build_env,
721-
config=config
722-
)
723-
update_docs.python_env = python_env
724-
725-
update_docs.build_docs_html()
726-
727-
args, kwargs = run.call_args
728-
assert kwargs['cwd'] == str(tmpdir)
729-
append_conf.assert_called_once()
730-
move.assert_called_once()
731-
732702
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.move')
733703
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.append_conf')
734704
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.run')
@@ -766,6 +736,7 @@ def test_sphinx_configuration(
766736
append_conf.assert_called_once()
767737
move.assert_called_once()
768738

739+
@pytest.mark.skip
769740
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.move')
770741
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.append_conf')
771742
@patch('readthedocs.doc_builder.backends.sphinx.BaseSphinx.run')

0 commit comments

Comments
 (0)