Skip to content

Commit c87a300

Browse files
committed
Merge branch 'master' into rebuild_needed_only
2 parents a939e65 + 641f0ed commit c87a300

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/test_blag.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,22 @@ def test_build(args):
274274

275275
blag.build(args)
276276

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+
277293

278294
def test_main(cleandir):
279295
blag.main(['build'])

0 commit comments

Comments
 (0)