mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): test_rpc.setup() should be a pytest.fixture
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
0bbb3cc4d0
commit
f7818e26b5
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
import orjson
|
import orjson
|
||||||
|
import pytest
|
||||||
|
|
||||||
from fastapi.testclient import TestClient
|
from fastapi.testclient import TestClient
|
||||||
|
|
||||||
|
@ -24,6 +25,7 @@ def make_request(path):
|
||||||
return request.get(path)
|
return request.get(path)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
def setup():
|
def setup():
|
||||||
# Set up tables.
|
# Set up tables.
|
||||||
setup_test_db("Users", "PackageBases", "Packages", "Licenses",
|
setup_test_db("Users", "PackageBases", "Packages", "Licenses",
|
||||||
|
|
Loading…
Add table
Reference in a new issue