MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / test_different_user_access

Function test_different_user_access

backend/tests/flashcards/card/test_api.py:128–142  ·  view source on GitHub ↗
(
    client: TestClient,
    superuser_token_headers: dict[str, str],
    test_collection: dict[str, Any],
    test_card: dict[str, Any],
)

Source from the content-addressed store, hash-verified

126
127
128def test_different_user_access(
129 client: TestClient,
130 superuser_token_headers: dict[str, str],
131 test_collection: dict[str, Any],
132 test_card: dict[str, Any],
133):
134 collection_id = test_collection["id"]
135 card_id = test_card["id"]
136
137 rsp = client.get(
138 f"{settings.API_V1_STR}/collections/{collection_id}/cards/{card_id}",
139 headers=superuser_token_headers,
140 )
141
142 assert rsp.status_code == 404
143
144
145def test_read_cards(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected