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

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-09-17 12:42:32 -07:00
parent 0bbb3cc4d0
commit f7818e26b5
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -1,4 +1,5 @@
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",