feat: Switch to postgres

WIP!

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2023-11-12 18:48:50 +01:00
parent 5d302ae00c
commit 9d5c5504b3
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
61 changed files with 440 additions and 507 deletions

View file

@ -153,7 +153,7 @@ def test_pkg_required(package: Package):
# We want to make sure "Package" data is included
# to avoid lazy-loading the information for each dependency
qry = util.pkg_required("test", list())
assert "Packages_ID" in str(qry)
assert "packages_id" in str(qry).lower()
# We should have 1 record
assert qry.count() == 1