@@ -320,7 +320,7 @@ def validate_mkdocs_file(temp_path: str, mkdocs_yml_file: str):
320320 testproject_path = setup_clean_mkdocs_folder (mkdocs_yml_path = mkdocs_yml_file , output_path = temp_path )
321321 setup_commit_history (testproject_path )
322322 result = build_docs_setup (testproject_path )
323- assert result .exit_code == 0 , f"'mkdocs build' command failed with output :\n { result .stdout } \n Replicate with 'cd { testproject_path } && uv run mkdocs build '"
323+ assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n { result .stdout } \n Replicate with 'uv run mkdocs serve -f { mkdocs_yml_file } '"
324324
325325 # validate build with locale retrieved from mkdocs config file
326326 validate_build (testproject_path , plugin_config = get_plugin_config_from_mkdocs (mkdocs_yml_file ))
@@ -648,7 +648,7 @@ def test_mkdocs_genfiles_plugin(tmp_path):
648648 )
649649 setup_commit_history (testproject_path )
650650 result = build_docs_setup (testproject_path )
651- assert result .exit_code == 0 , f"'mkdocs build' command failed with { result .stdout } \n Replicate with 'cd { testproject_path } && uv run mkdocs build '"
651+ assert result .exit_code == 0 , f"'mkdocs build' command failed with: \n { result .stdout } \n Replicate with 'uv run mkdocs serve -f tests/fixtures/mkdocs-gen-files/mkdocs.yml '"
652652
653653 # validate the build
654654 plugin_config = get_plugin_config_from_mkdocs (str (testproject_path / "mkdocs.yml" ))
@@ -692,22 +692,22 @@ def test_monorepo_compat(tmp_path):
692692 testproject_path = setup_clean_mkdocs_folder ("tests/fixtures/monorepo/mkdocs.yml" , tmp_path )
693693 setup_commit_history (testproject_path )
694694 result = build_docs_setup (testproject_path )
695- assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n \n { result .stdout } \n Replicate with 'cd { testproject_path } && uv run mkdocs build '"
695+ assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n { result .stdout } \n Replicate with 'uv run mkdocs serve -f tests/fixtures/monorepo/mkdocs.yml '"
696696
697697@pytest .mark .skipif (sys .platform .startswith ("win" ), reason = "monorepo plugin did not work for me on windows (even without this plugin)" )
698698def test_monorepo_compat_reverse_order (tmp_path ):
699699 testproject_path = setup_clean_mkdocs_folder ("tests/fixtures/monorepo/mkdocs_reverse_order.yml" , tmp_path )
700700 setup_commit_history (testproject_path )
701701 result = build_docs_setup (testproject_path )
702- assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n \n { result .stdout } \n Replicate with 'cd { testproject_path } && uv run mkdocs build '"
702+ assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n { result .stdout } \n Replicate with 'uv run mkdocs serve -f tests/fixtures/monorepo/mkdocs_reverse_order.yml '"
703703
704704
705705def test_genfiles_plugin (tmp_path ):
706706 testproject_path = setup_clean_mkdocs_folder ("tests/fixtures/basic_project/mkdocs_plugin_genfiles.yml" , tmp_path )
707707 setup_commit_history (testproject_path )
708708
709709 result = build_docs_setup (testproject_path )
710- assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n \n { result .stdout } \n Replicate with 'cd { testproject_path } && uv run mkdocs build '"
710+ assert result .exit_code == 0 , f"'mkdocs build' command failed with:\n { result .stdout } \n Replicate with 'uv run mkdocs serve -f tests/fixtures/basic_project/mkdocs_plugin_genfiles.yml '"
711711
712712 page_with_tag = testproject_path / "site/foo/index.html"
713713 contents = page_with_tag .read_text (encoding = "utf8" )
0 commit comments