mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat: Switch to postgres
WIP! Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
parent
40c1d3e8ee
commit
f33ae9e34e
50 changed files with 391 additions and 466 deletions
|
@ -46,12 +46,12 @@ def test_package_base(user: User, pkgbase: PackageBase):
|
|||
assert pkgbase.Popularity == 0.0
|
||||
|
||||
|
||||
def test_package_base_ci(user: User, pkgbase: PackageBase):
|
||||
"""Test case insensitivity of the database table."""
|
||||
with pytest.raises(IntegrityError):
|
||||
with db.begin():
|
||||
db.create(PackageBase, Name=pkgbase.Name.upper(), Maintainer=user)
|
||||
db.rollback()
|
||||
# def test_package_base_ci(user: User, pkgbase: PackageBase):
|
||||
# """Test case insensitivity of the database table."""
|
||||
# with pytest.raises(IntegrityError):
|
||||
# with db.begin():
|
||||
# db.create(PackageBase, Name=pkgbase.Name.upper(), Maintainer=user)
|
||||
# db.rollback()
|
||||
|
||||
|
||||
def test_package_base_relationships(user: User, pkgbase: PackageBase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue