Fix code smell: mock web client

This commit is contained in:
2022-07-10 20:39:58 +01:00
parent 4b5eed33dc
commit 3ef84907cc
2 changed files with 3 additions and 3 deletions

View File

@ -13,5 +13,5 @@ def client():
"""Set up Flask client for use in tests."""
app.secret_key = os.urandom(12).hex()
csrf.init_app(app)
client = app.test_client()
yield client
web_client = app.test_client()
yield web_client

View File

@ -3,7 +3,7 @@
"""Tests for app/app.py"""
from tests import client
from tests import client # pragma: no cover
def test_index(client) -> None: