From 4f72374eaa791e2e1295853304c6b9fdf312c9c4 Mon Sep 17 00:00:00 2001 From: Amol Kahat Date: Jan 07 2017 10:07:12 +0000 Subject: Remove the 'pagure.lib.model.drop_tables' from test/__init__.py file. Fixes : https://pagure.io/pagure/issue/1566. pagure. --- diff --git a/tests/__init__.py b/tests/__init__.py index 7b2df38..14605fa 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -209,9 +209,7 @@ class Modeltests(unittest.TestCase): if os.path.exists(DB_PATH): os.unlink(DB_PATH) if DB_PATH.startswith('postgres'): - if 'localhost' in DB_PATH: - pagure.lib.model.drop_tables(DB_PATH, self.session.bind) - else: + if 'localhost' not in DB_PATH: db_name = DB_PATH.rsplit('/', 1)[1] requests.get('%s/clean/%s' % (FAITOUT_URL, db_name))