mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(deps): upgrade to sqlalchemy version 2
Bump sqlalchemy to version 2.0.17 There are quite some changes that happened with v2. We are currently relying on the "auto-commit" feature which was removed. For the moment we can use a wrapper class to mimic the auto-commit behavior allowing us to move to v2. Ultimately, the (db) session management needs some overhaul though. Signed-off-by: moson-mo <mo-son@mailbox.org>
This commit is contained in:
parent
9eda6a42c6
commit
ec090d7b30
12 changed files with 112 additions and 170 deletions
|
@ -24,5 +24,6 @@ def test_run():
|
|||
aurweb.initdb.run(Args())
|
||||
|
||||
# Check that constant table rows got added via initdb.
|
||||
record = aurweb.db.query(AccountType, AccountType.AccountType == "User").first()
|
||||
with aurweb.db.begin():
|
||||
record = aurweb.db.query(AccountType, AccountType.AccountType == "User").first()
|
||||
assert record is not None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue