mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
test_package_vote: remove useless stuff
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
ebd216edfd
commit
229df1adef
1 changed files with 1 additions and 7 deletions
|
@ -4,8 +4,7 @@ import pytest
|
|||
|
||||
from sqlalchemy.exc import IntegrityError
|
||||
|
||||
from aurweb.db import create, query, rollback
|
||||
from aurweb.models.account_type import AccountType
|
||||
from aurweb.db import create, rollback
|
||||
from aurweb.models.package_base import PackageBase
|
||||
from aurweb.models.package_vote import PackageVote
|
||||
from aurweb.models.user import User
|
||||
|
@ -20,11 +19,6 @@ def setup():
|
|||
|
||||
setup_test_db("Users", "PackageBases", "PackageVotes")
|
||||
|
||||
account_type = query(AccountType,
|
||||
AccountType.AccountType == "User").first()
|
||||
print(account_type.ID)
|
||||
print(account_type.AccountType)
|
||||
|
||||
user = create(User, Username="test", Email="test@example.org",
|
||||
RealName="Test User", Passwd="testPassword")
|
||||
pkgbase = create(PackageBase, Name="test-package", Maintainer=user)
|
||||
|
|
Loading…
Add table
Reference in a new issue