@@ -29,13 +29,16 @@ def test_simple(self, app: Sphinx, ensure_redirect):
29
29
ensure_redirect ("another.html" , "index.html" )
30
30
31
31
@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 )
33
35
if Path (app .outdir ).exists ():
34
36
shutil .rmtree (Path (app .outdir ))
35
37
app .build ()
36
38
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
39
42
ensure_redirect ("another.html" , "index.html" )
40
43
41
44
@pytest .mark .sphinx ("html" , testroot = "no_cycle" )
@@ -272,13 +275,16 @@ def test_simple(self, app: Sphinx, ensure_redirect):
272
275
ensure_redirect ("another/index.html" , "index.html" )
273
276
274
277
@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 )
276
281
if Path (app .outdir ).exists ():
277
282
shutil .rmtree (Path (app .outdir ))
278
283
app .build ()
279
284
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
282
288
ensure_redirect ("another/index.html" , "index.html" )
283
289
284
290
@pytest .mark .sphinx ("dirhtml" , testroot = "no_cycle" )
0 commit comments