Compare commits

..

1 Commits

Author SHA1 Message Date
5d259635a2
fix db error on second login
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
2021-06-22 17:52:22 +02:00
2 changed files with 9 additions and 0 deletions

View File

@ -6,3 +6,9 @@
language: system
files: ^.*\.py$
exclude: ^(migrations).*$
- id: unittest
name: unittest
entry: python -m unittest discover ki
language: system
exclude: .*
always_run: true

View File

@ -15,12 +15,15 @@ class TestProfileEndpoint(unittest.TestCase):
self.client = app.test_client()
with app.app_context():
db.drop_all()
db.engine.dispose()
config = migrate.get_config()
command.upgrade(config, "head")
seed()
def tearDown(self):
db.drop_all()
db.engine.dispose()
def test_create_profile(self):