|
13 | 13 | # standard lib |
14 | 14 | import logging |
15 | 15 | import os |
| 16 | +import sys |
16 | 17 | import re |
17 | 18 | import shutil |
18 | 19 | from contextlib import contextmanager |
@@ -680,14 +681,16 @@ def test_ignored_commits(tmp_path): |
680 | 681 | assert "May 4, 2018" in contents |
681 | 682 |
|
682 | 683 |
|
| 684 | +@pytest.mark.skipif(sys.platform.startswith("win"), reason="monorepo plugin did not work for me on windows (even without this plugin)") |
683 | 685 | def test_monorepo_compat(tmp_path): |
684 | 686 | testproject_path = setup_clean_mkdocs_folder("tests/fixtures/monorepo/mkdocs.yml", tmp_path) |
685 | | - repo = setup_commit_history(testproject_path) |
| 687 | + setup_commit_history(testproject_path) |
686 | 688 | result = build_docs_setup(testproject_path) |
| 689 | + assert result.exit_code == 0, f"'mkdocs build' command failed with:\n\n{result.stdout}" |
687 | 690 |
|
688 | | - # author = "Test Person <testtest@gmail.com>" |
689 | | - # with working_directory(testproject_path): |
690 | | - # repo.git.add(".") |
691 | | - # repo.git.commit(message="add all", author=author, date="1500854705") |
692 | | - |
| 691 | +@pytest.mark.skipif(sys.platform.startswith("win"), reason="monorepo plugin did not work for me on windows (even without this plugin)") |
| 692 | +def test_monorepo_compat_reverse_order(tmp_path): |
| 693 | + testproject_path = setup_clean_mkdocs_folder("tests/fixtures/monorepo/mkdocs_reverse_order.yml", tmp_path) |
| 694 | + setup_commit_history(testproject_path) |
| 695 | + result = build_docs_setup(testproject_path) |
693 | 696 | assert result.exit_code == 0, f"'mkdocs build' command failed with:\n\n{result.stdout}" |
0 commit comments