Skip to content

Commit 6658966

Browse files
committed
added 1 to history due to another build config and allowed order to be any
1 parent 656354f commit 6658966

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

readthedocs/projects/tests/test_build_tasks.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,9 @@ def test_build_updates_documentation_type(self, load_yaml_config):
301301
self._trigger_update_docs_task()
302302

303303
# Update version state
304-
assert self.requests_mock.request_history[8]._request.method == "PATCH"
305-
assert self.requests_mock.request_history[8].path == "/api/v2/version/1/"
306-
assert self.requests_mock.request_history[8].json() == {
304+
assert self.requests_mock.request_history[9]._request.method == "PATCH"
305+
assert self.requests_mock.request_history[9].path == "/api/v2/version/1/"
306+
assert self.requests_mock.request_history[9].json() == {
307307
"addons": False,
308308
"build_data": None,
309309
"built": True,
@@ -1988,7 +1988,8 @@ def test_sphinx_fail_on_warning(self, load_yaml_config):
19881988
cwd=mock.ANY,
19891989
bin_path=mock.ANY,
19901990
),
1991-
]
1991+
],
1992+
any_order=True,
19921993
)
19931994

19941995
@mock.patch("readthedocs.doc_builder.director.load_yaml_config")

0 commit comments

Comments
 (0)