Set defaults for CI and DETERMINISTIC_TESTS. (#653)

This makes it a bit easier to manually run individual tests.
This commit is contained in:
Jelmer Vernooij 2017-07-19 19:40:52 +00:00 committed by Markus Unterwaditzer
parent bde00c227a
commit 01c88b514c

View file

@ -37,7 +37,7 @@ settings.register_profile("deterministic", settings(
derandomize=True,
))
if os.environ['DETERMINISTIC_TESTS'].lower() == 'true':
if os.environ.get('DETERMINISTIC_TESTS', 'false').lower() == 'true':
settings.load_profile("deterministic")
elif os.environ['CI'].lower() == 'true':
elif os.environ.get('CI', 'false').lower() == 'true':
settings.load_profile("ci")