Skip to content

Commit

Permalink
Add integration test for --save_assets and --load_assets
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Walsh committed Nov 8, 2018
1 parent c241bb5 commit 298f34a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,15 @@ def test_integration_retain_sqlite_db(self):
self.assertTrue(is_non_zero_file(j(self.dest_tmpdir, 'test',
'siegfried.sqlite')))

def test_integration_save_load_assets(self):
assets_dir = os.path.join(self.dest_tmpdir, 'assets_test')
subprocess.call('python brunnhilde.py --save_assets "%s" ./test-data/files/ "%s" save-test' % (assets_dir, self.dest_tmpdir),
shell=True)
subprocess.call('python brunnhilde.py --load_assets "%s" ./test-data/files/ "%s" load-test' % (assets_dir, self.dest_tmpdir),
shell=True)
self.assertTrue(is_non_zero_file(j(self.dest_tmpdir, 'load-test',
'report.html')))


if __name__ == '__main__':
unittest.main()

0 comments on commit 298f34a

Please sign in to comment.