Skip to content

Commit

Permalink
Merge pull request #3 from sbrunner/test-progress-experimental
Browse files Browse the repository at this point in the history
Add progress and experimetal tests
  • Loading branch information
sbrunner authored Apr 2, 2019
2 parents f873b54 + c4d6067 commit 4571746
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,12 @@ def test_full(progress, experimental):
images = process.transform(config, '/tmp/test-config.yaml', root_folder)
check_image(root_folder, images[0], 'all-1')
assert len(images) == 1

if progress == 'TRUE':
assert os.path.exists(os.path.join(root_folder, '0-force-cleanup/all-1.png'))
else:
assert not os.path.exists(os.path.join(root_folder, '0-force-cleanup'))
if experimental == 'TRUE':
assert os.path.exists(os.path.join(root_folder, 'scantailor/all-1.png'))
else:
assert not os.path.exists(os.path.join(root_folder, 'scantailor'))

0 comments on commit 4571746

Please # to comment.