File tree Expand file tree Collapse file tree 1 file changed +15
-20
lines changed
readthedocs/projects/tests Expand file tree Collapse file tree 1 file changed +15
-20
lines changed Original file line number Diff line number Diff line change @@ -302,13 +302,13 @@ def test_build_updates_documentation_type(self, load_yaml_config):
302
302
303
303
# Update version state
304
304
patch_request = None
305
- for req in self .requests_mock .request_history :
305
+ for req in self .requests_mock .request_history [ 7 :] :
306
306
if req ._request .method == "PATCH" and req .path == "/api/v2/version/1/" :
307
307
patch_request = req
308
308
break
309
309
310
310
assert patch_request ._request .method == "PATCH"
311
- assert patch_request == "/api/v2/version/1/"
311
+ assert patch_request . path == "/api/v2/version/1/"
312
312
assert patch_request .json () == {
313
313
"addons" : False ,
314
314
"build_data" : None ,
@@ -2012,24 +2012,19 @@ def test_mkdocs_fail_on_warning(self, load_yaml_config):
2012
2012
2013
2013
self ._trigger_update_docs_task ()
2014
2014
2015
- self .mocker .mocks ["environment.run" ].assert_has_calls (
2016
- [
2017
- mock .call (
2018
- mock .ANY ,
2019
- "-m" ,
2020
- "mkdocs" ,
2021
- "build" ,
2022
- "--clean" ,
2023
- "--site-dir" ,
2024
- "$READTHEDOCS_OUTPUT/html" ,
2025
- "--config-file" ,
2026
- "docs/mkdocs.yaml" ,
2027
- "--strict" , # fail on warning flag
2028
- cwd = mock .ANY ,
2029
- bin_path = mock .ANY ,
2030
- )
2031
- ],
2032
- any_order = True ,
2015
+ self .mocker .mocks ["environment.run" ].assert_any_call (
2016
+ mock .ANY ,
2017
+ "-m" ,
2018
+ "mkdocs" ,
2019
+ "build" ,
2020
+ "--clean" ,
2021
+ "--site-dir" ,
2022
+ "$READTHEDOCS_OUTPUT/html" ,
2023
+ "--config-file" ,
2024
+ "docs/mkdocs.yaml" ,
2025
+ "--strict" ,
2026
+ cwd = mock .ANY ,
2027
+ bin_path = mock .ANY ,
2033
2028
)
2034
2029
2035
2030
@mock .patch ("readthedocs.doc_builder.director.load_yaml_config" )
You can’t perform that action at this time.
0 commit comments