mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
change(popupdate): converted to use aurweb.db ORM
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
3a65e33abe
commit
3efb9a57b5
3 changed files with 57 additions and 41 deletions
|
@ -9,7 +9,7 @@ import pytest
|
|||
from fastapi.testclient import TestClient
|
||||
from redis.client import Pipeline
|
||||
|
||||
from aurweb import asgi, config, db, scripts
|
||||
from aurweb import asgi, config, scripts
|
||||
from aurweb.db import begin, create, query
|
||||
from aurweb.models.account_type import AccountType
|
||||
from aurweb.models.dependency_type import DependencyType
|
||||
|
@ -187,8 +187,7 @@ def setup(db_test):
|
|||
PackageBase=pkgbase1,
|
||||
VoteTS=5000)
|
||||
|
||||
conn = db.ConnectionExecutor(db.get_engine().raw_connection())
|
||||
scripts.popupdate.run_single(conn, pkgbase1)
|
||||
scripts.popupdate.run_single(pkgbase1)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue