@@ -67,22 +67,22 @@ def setup_commit_history(testproject_path):
6767
6868 repo = git .Repo .init (testproject_path , bare = False )
6969 author = "Test Person <[email protected] >" 70-
70+
7171 # Change the working directory
7272 cwd = os .getcwd ()
7373 os .chdir (testproject_path )
74-
74+
7575 try :
7676 repo .git .add ('mkdocs.yml' )
7777 repo .git .commit (message = 'add mkdocs' , author = author )
7878 repo .git .add ('docs/first_page.md' )
79- repo .git .commit (message = 'first page' , author = author )
79+ repo .git .commit (message = 'first page' , author = author )
8080 repo .git .add ('docs/second_page.md' )
8181 repo .git .commit (message = 'second page' , author = author )
8282 repo .git .add ('docs/index.md' )
8383 repo .git .commit (message = 'homepage' , author = author )
8484 repo .git .add ('docs/page_with_tag.md' )
85- repo .git .commit (message = 'homepage' , author = author )
85+ repo .git .commit (message = 'homepage' , author = author )
8686 os .chdir (cwd )
8787 except :
8888 os .chdir (cwd )
@@ -180,11 +180,15 @@ def test_missing_git_repo(tmp_path):
180180 result = build_docs_setup (testproject_path )
181181 assert result .exit_code == 1 , "'mkdocs build' command succeeded while there is no GIT repo"
182182
183- def test_basic_locale_builds (tmp_path ):
183+ def test_build_no_options (tmp_path ):
184184 # Enable plugin with no extra options set
185185 validate_mkdocs_file (tmp_path , 'tests/basic_setup/mkdocs.yml' )
186+
187+ def test_build_locale_plugin (tmp_path ):
186188 # Enable plugin with plugin locale set to 'nl'
187189 validate_mkdocs_file (tmp_path , 'tests/basic_setup/mkdocs_plugin_locale.yml' )
190+
191+ def test_build_locale_mkdocs (tmp_path ):
188192 # Enable plugin with mkdocs locale set to 'nl'
189193 validate_mkdocs_file (tmp_path , 'tests/basic_setup/mkdocs_locale.yml' )
190194
@@ -203,27 +207,24 @@ def test_material_theme(tmp_path):
203207 contents = index_file .read_text ()
204208 assert re .search (r"Letztes Update\:\s[\w].+" , contents )
205209
206- def test_type_builds (tmp_path ):
207- """
208- Test the different 'type' parameters
209- """
210-
210+ def test_type_timeago (tmp_path ):
211211 # type: 'timeago'
212212 testproject_path = validate_mkdocs_file (
213213 tmp_path ,
214214 'tests/basic_setup/mkdocs_timeago.yml' )
215215
216+ def test_type_datetime (tmp_path ):
216217 # type: 'datetime'
217218 testproject_path = validate_mkdocs_file (
218219 tmp_path ,
219220 'tests/basic_setup/mkdocs_datetime.yml' )
220221
222+ def test_type_unknown (tmp_path ):
221223 with pytest .raises (AssertionError ):
222224 testproject_path = validate_mkdocs_file (
223225 tmp_path ,
224226 'tests/basic_setup/mkdocs_unknown_type.yml' )
225-
226-
227+
227228def test_low_fetch_depth (tmp_path ):
228229 """
229230 On gitlab and github runners, a GIT might have a low fetch
0 commit comments