mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
add noop testing utility
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
29989b7fdb
commit
c59acbf6d6
1 changed files with 4 additions and 0 deletions
|
@ -62,3 +62,7 @@ def setup_test_db(*args):
|
|||
aurweb.db.get_session().execute(f"DELETE FROM {table}")
|
||||
aurweb.db.get_session().execute("SET FOREIGN_KEY_CHECKS = 1")
|
||||
aurweb.db.get_session().expunge_all()
|
||||
|
||||
|
||||
def noop(*args, **kwargs) -> None:
|
||||
return
|
||||
|
|
Loading…
Add table
Reference in a new issue