From 236b83f04a4b022a16b2effc397c4e38d7565b7e Mon Sep 17 00:00:00 2001 From: Patrik Segedy Date: Mon, 11 Dec 2023 18:53:08 +0100 Subject: [PATCH] chore: flake8 --- vmaas/reposcan/conftest.py | 2 ++ vmaas/reposcan/test/test_case.py | 1 + 2 files changed, 3 insertions(+) diff --git a/vmaas/reposcan/conftest.py b/vmaas/reposcan/conftest.py index 8b082b896..533a4ead5 100644 --- a/vmaas/reposcan/conftest.py +++ b/vmaas/reposcan/conftest.py @@ -61,11 +61,13 @@ def write_testing_data(conn): cursor.execute(VMAAS_DB_DATA.read_text(encoding="utf-8")) conn.commit() + @pytest.fixture def client(app): with app.test_client() as client: yield client + @pytest.fixture def client_class(request, client): if request.cls is not None: diff --git a/vmaas/reposcan/test/test_case.py b/vmaas/reposcan/test/test_case.py index 85b2e888f..44b6326e5 100644 --- a/vmaas/reposcan/test/test_case.py +++ b/vmaas/reposcan/test/test_case.py @@ -30,6 +30,7 @@ "x-rh-identity": base64.b64encode(json.dumps(TURNPIKE_IDENTITY).encode("utf-8")) } + @pytest.mark.usefixtures('client_class') class FlaskTestCase: """Base class for vulnerability engine manager test cases"""