MCPcopy
hub / github.com/langflow-ai/langflow / logged_in_headers_super_user

Function logged_in_headers_super_user

src/backend/tests/conftest.py:597–603  ·  view source on GitHub ↗
(client, active_super_user)

Source from the content-addressed store, hash-verified

595
596@pytest.fixture
597async 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

Calls 2

postMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected