From aa12ffb13ba34deedbb31fdc731fe3b4a3476e41 Mon Sep 17 00:00:00 2001 From: Jaisen Mathai Date: Fri, 9 Feb 2018 00:01:10 -0800 Subject: [PATCH] Fixes proper handling of location.json after failed test runs. #264 --- elodie/tests/helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elodie/tests/helper.py b/elodie/tests/helper.py index bda3a34..15c369e 100644 --- a/elodie/tests/helper.py +++ b/elodie/tests/helper.py @@ -160,7 +160,7 @@ def reset_dbs(): location_db = '{}-test'.format(constants.location_db) - if os.path.isfile(location_db): + if not os.path.isfile(location_db): location_db = constants.location_db if os.path.isfile(location_db): _rename(location_db, '{}-test'.format(location_db))