MCPcopy Create free account
hub / github.com/pallets/flask / AuthActions

Class AuthActions

examples/tutorial/tests/conftest.py:47–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46
47class AuthActions:
48 def __init__(self, client):
49 self._client = client
50
51 def login(self, username="test", password="test"):
52 return self._client.post(
53 "/auth/login", data={"username": username, "password": password}
54 )
55
56 def logout(self):
57 return self._client.get("/auth/logout")
58
59
60@pytest.fixture

Callers 1

authFunction · 0.85

Calls

no outgoing calls

Tested by 1

authFunction · 0.68