export: Add basic export tests. (fixes #1584)

This commit is contained in:
Steve Howell
2016-08-13 11:22:23 -07:00
committed by Tim Abbott
parent ab053845aa
commit c12bd853f7
2 changed files with 174 additions and 1 deletions

View File

@@ -1006,7 +1006,8 @@ def do_export_realm(realm, output_dir, threads, exportable_user_ids=None):
# We need at least one thread running to export
# UserMessage rows. The management command should
# enforce this for us.
assert threads >= 1
if not settings.TEST_SUITE:
assert threads >= 1
assert os.path.exists("./manage.py")