Verified Commit f7818e26 authored by Kevin Morris's avatar Kevin Morris
Browse files

fix(FastAPI): test_rpc.setup() should be a pytest.fixture



Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
parent 0bbb3cc4
import orjson
import pytest
from fastapi.testclient import TestClient
......@@ -24,6 +25,7 @@ def make_request(path):
return request.get(path)
@pytest.fixture(autouse=True)
def setup():
# Set up tables.
setup_test_db("Users", "PackageBases", "Packages", "Licenses",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment