File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,22 @@ def test_build(args):
274
274
275
275
blag .build (args )
276
276
277
+ # test existence of the three converted files
278
+ for i in range (3 ):
279
+ assert os .path .exists (f'{ args .output_dir } /{ i } .html' )
280
+ # ... static file
281
+ assert os .path .exists (f'{ args .output_dir } /test' )
282
+ # ... directory
283
+ assert os .path .exists (f'{ args .output_dir } /testdir/test' )
284
+ # ... feed
285
+ assert os .path .exists (f'{ args .output_dir } /atom.xml' )
286
+ # ... archive
287
+ assert os .path .exists (f'{ args .output_dir } /index.html' )
288
+ # ... tags
289
+ assert os .path .exists (f'{ args .output_dir } /tags/index.html' )
290
+ assert os .path .exists (f'{ args .output_dir } /tags/foo.html' )
291
+ assert os .path .exists (f'{ args .output_dir } /tags/bar.html' )
292
+
277
293
278
294
def test_main (cleandir ):
279
295
blag .main (['build' ])
You can’t perform that action at this time.
0 commit comments