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))