import unittest

from flask_testing import TestCase
from klon_core.data import HubDatabase
from klon_hub.run import test_app

access_pw = "some password i dunno"
db = HubDatabase._create_in_memory(access_pw=access_pw)


class ApiBlueprintTest(TestCase):
    def create_app(self):
        db.clear()
        return test_app(db)

if __name__ == '__main__':
    unittest.main()
