| 45 | |
| 46 | |
| 47 | class 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 |