Fix admin lock test, add delete init locks in db fixture
This commit is contained in:
parent
10153516f0
commit
01513fa9ad
@ -53,6 +53,9 @@ def init_database(
|
|||||||
alembic.command.downgrade(ac, 'base')
|
alembic.command.downgrade(ac, 'base')
|
||||||
alembic.command.upgrade(ac, 'head')
|
alembic.command.upgrade(ac, 'head')
|
||||||
|
|
||||||
|
session.execute('DELETE FROM lock')
|
||||||
|
session.commit()
|
||||||
|
|
||||||
yield session
|
yield session
|
||||||
session.commit()
|
session.commit()
|
||||||
session.close()
|
session.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user