(
client: TestClient,
superuser_token_headers: dict[str, str],
test_collection: dict[str, Any],
test_card: dict[str, Any],
)
| 126 | |
| 127 | |
| 128 | def 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 | |
| 145 | def test_read_cards( |
nothing calls this directly
no outgoing calls
no test coverage detected