Function
logged_in_headers_super_user
(client, active_super_user)
Source from the content-addressed store, hash-verified
| 595 | |
| 596 | @pytest.fixture |
| 597 | async def logged_in_headers_super_user(client, active_super_user): |
| 598 | login_data = {"username": active_super_user.username, "password": "testpassword"} |
| 599 | response = await client.post("api/v1/login", data=login_data) |
| 600 | assert response.status_code == 200 |
| 601 | tokens = response.json() |
| 602 | a_token = tokens["access_token"] |
| 603 | return {"Authorization": f"Bearer {a_token}"} |
| 604 | |
| 605 | |
| 606 | @pytest.fixture |
Callers
nothing calls this directly
Tested by
no test coverage detected