mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
style: Run pre-commit
This commit is contained in:
parent
b47882b114
commit
9c6c13b78a
235 changed files with 7180 additions and 5628 deletions
|
@ -3,7 +3,6 @@ import pytest
|
|||
import aurweb.config
|
||||
import aurweb.db
|
||||
import aurweb.initdb
|
||||
|
||||
from aurweb.models.account_type import AccountType
|
||||
|
||||
|
||||
|
@ -19,11 +18,11 @@ class Args:
|
|||
|
||||
def test_run():
|
||||
from aurweb.schema import metadata
|
||||
|
||||
aurweb.db.kill_engine()
|
||||
metadata.drop_all(aurweb.db.get_engine())
|
||||
aurweb.initdb.run(Args())
|
||||
|
||||
# Check that constant table rows got added via initdb.
|
||||
record = aurweb.db.query(AccountType,
|
||||
AccountType.AccountType == "User").first()
|
||||
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