Skip to content

Commit

Permalink
chore: flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
psegedy committed Dec 11, 2023
1 parent 38c53e5 commit 236b83f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vmaas/reposcan/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions vmaas/reposcan/test/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down

0 comments on commit 236b83f

Please sign in to comment.