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

Function test_user

src/backend/tests/conftest.py:512–522  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

510
511@pytest.fixture
512async def test_user(client):
513 user_data = UserCreate(
514 username="testuser",
515 password="testpassword", # noqa: S106
516 )
517 response = await client.post("api/v1/users/", json=user_data.model_dump())
518 assert response.status_code == 201
519 user = response.json()
520 yield user
521 # Clean up
522 await client.delete(f"/api/v1/users/{user['id']}")
523
524
525@pytest.fixture

Callers

nothing calls this directly

Calls 5

UserCreateClass · 0.90
postMethod · 0.45
model_dumpMethod · 0.45
jsonMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected