Skip to content

Commit 3713faf

Browse files
committed
remove genfiles plugin from tests suites because it is python 3.7+
1 parent a4f999f commit 3713faf

File tree

4 files changed

+2
-19
lines changed

4 files changed

+2
-19
lines changed

tests/basic_setup/gen_pages.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

tests/basic_setup/mkdocs_genfiles.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,3 @@ plugins:
1616
- automatically_generated.md
1717
- manually_created.md
1818
- somefolder/*
19-
- gen-files:
20-
scripts:
21-
- gen_pages.py

tests/test_basic.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_exclude_working_with_genfiles(tmp_path):
8989
A warning for uncommited files should not show up
9090
when those uncommited files are excluded.
9191
"""
92-
92+
9393
testproject_path = tmp_path / "testproject_genfiles"
9494

9595
shutil.copytree(
@@ -99,10 +99,6 @@ def test_exclude_working_with_genfiles(tmp_path):
9999
"tests/basic_setup/mkdocs_genfiles.yml",
100100
str(testproject_path / "mkdocs.yml"),
101101
)
102-
shutil.copyfile(
103-
"tests/basic_setup/gen_pages.py",
104-
str(testproject_path / "gen_pages.py"),
105-
)
106102

107103
with working_directory(str(testproject_path)):
108104
# setup git history
@@ -130,9 +126,6 @@ def test_exclude_working_with_genfiles(tmp_path):
130126
"'mkdocs build' command failed. Error: %s" % result.stdout
131127
)
132128

133-
# files generated by mkdocs-gen-files and excluded should not generate warnings
134-
assert "automatically_generated.md has not been committed yet." not in result.stdout
135-
136129
# files generated ourselves right before build but not committed, should not generate warnings
137130
assert "manually_created.md has not been committed yet." not in result.stdout
138131
assert "manually_created_infolder.md has not been committed yet." not in result.stdout

tests/test_requirements.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,4 @@ GitPython
1010
# mkdocs
1111
mkdocs
1212
mkdocs-git-revision-date-localized-plugin
13-
mkdocs-material
14-
15-
# compatibility
16-
mkdocs-gen-files
13+
mkdocs-material

0 commit comments

Comments
 (0)