@@ -29,13 +29,16 @@ def test_simple(self, app: Sphinx, ensure_redirect):
2929 ensure_redirect ("another.html" , "index.html" )
3030
3131 @pytest .mark .sphinx ("html" , testroot = "simple" )
32- def test_simple_rebuild (self , app : Sphinx , ensure_redirect ):
32+ def test_simple_rebuild (self , app_params , make_app , ensure_redirect ):
33+ args , kwargs = app_params
34+ app = make_app (* args , ** kwargs )
3335 if Path (app .outdir ).exists ():
3436 shutil .rmtree (Path (app .outdir ))
3537 app .build ()
3638 assert app .statuscode == 0
37- app .build ()
38- assert app .statuscode == 0
39+ app2 = make_app (* args , ** kwargs )
40+ app2 .build ()
41+ assert app2 .statuscode == 0
3942 ensure_redirect ("another.html" , "index.html" )
4043
4144 @pytest .mark .sphinx ("html" , testroot = "no_cycle" )
@@ -272,13 +275,16 @@ def test_simple(self, app: Sphinx, ensure_redirect):
272275 ensure_redirect ("another/index.html" , "index.html" )
273276
274277 @pytest .mark .sphinx ("dirhtml" , testroot = "simple" , freshenv = False )
275- def test_simple_rebuild (self , app : Sphinx , ensure_redirect ):
278+ def test_simple_rebuild (self , app_params , make_app , ensure_redirect ):
279+ args , kwargs = app_params
280+ app = make_app (* args , ** kwargs )
276281 if Path (app .outdir ).exists ():
277282 shutil .rmtree (Path (app .outdir ))
278283 app .build ()
279284 assert app .statuscode == 0
280- app .build ()
281- assert app .statuscode == 0
285+ app2 = make_app (* args , ** kwargs )
286+ app2 .build ()
287+ assert app2 .statuscode == 0
282288 ensure_redirect ("another/index.html" , "index.html" )
283289
284290 @pytest .mark .sphinx ("dirhtml" , testroot = "no_cycle" )
0 commit comments