Skip to content

Commit

Permalink
add minimal doc on fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien Coelho committed Mar 12, 2024
1 parent af3ae62 commit 94c45a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions FlaskTester.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ def _request(self, method: str, path: str, **kwargs):

@pytest.fixture
def ft_authenticator():
"""Pytest Fixture: ft_authenticator."""
allow = os.environ.get("FLASK_TESTER_ALLOW", "bearer basic param").split(" ")
# per-scheme parameters, must be consistent with FSA configuration
user = os.environ.get("FLASK_TESTER_USER", "USER")
Expand All @@ -365,6 +366,7 @@ def ft_authenticator():

@pytest.fixture
def ft_client(ft_authenticator):
"""Pytest Fixture: ft_client."""
default_login = os.environ.get("FLASK_TESTER_DEFAULT", None)
client: Client
if "FLASK_TESTER_URL" in os.environ: # pragma: no cover
Expand Down

0 comments on commit 94c45a7

Please sign in to comment.