Skip to content
Snippets Groups Projects
Commit 46ed419d authored by Rajmund Hruška's avatar Rajmund Hruška
Browse files

Fix: Create events database in hawat tests. (Redmine issue: #7601)

parent 83b5f0da
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ import flask_mail
import hawat
import hawat.app
import hawat.db
import hawat.events
class do_as_user_decorator: # pylint: disable=locally-disabled,invalid-name,too-few-public-methods
......@@ -112,6 +113,9 @@ class HawatTestCase(unittest.TestCase):
hawat.db.db_get().create_all()
self.setup_fixtures_db()
hawat.events.db_init(self.app)
hawat.events.db_get().database_create()
def get_fixtures_db(self, app):
raise NotImplementedError()
......@@ -147,6 +151,8 @@ class HawatTestCase(unittest.TestCase):
with self.app.app_context():
hawat.db.db_get().drop_all()
hawat.events.db_get().database_drop()
#--------------------------------------------------------------------------
def login_dev(self, login):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment