From f7818e26b54d87c3e07b47bd04012acb86389636 Mon Sep 17 00:00:00 2001 From: Kevin Morris Date: Fri, 17 Sep 2021 12:42:32 -0700 Subject: [PATCH] fix(FastAPI): test_rpc.setup() should be a pytest.fixture Signed-off-by: Kevin Morris --- test/test_rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_rpc.py b/test/test_rpc.py index 37e8db51..21817b45 100644 --- a/test/test_rpc.py +++ b/test/test_rpc.py @@ -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",