Skip to content

Commit e46e3b3

Browse files
committed
fixup! 🏗️(project) migrate to pydantic v2 and switch tests to polyfactory
1 parent c10b8c3 commit e46e3b3

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

tests/api/test_statements_get.py

-12
Original file line numberDiff line numberDiff line change
@@ -511,18 +511,6 @@ async def test_api_statements_get_by_activity(
511511
assert response.status_code == 200
512512
assert response.json() == {"statements": [statements[1]]}
513513

514-
# Check that badly formatted activity returns an error
515-
response = await client.get(
516-
"/xAPI/statements/?activity=INVALID_IRI",
517-
headers={"Authorization": f"Basic {basic_auth_credentials}"},
518-
)
519-
520-
assert response.status_code == 422
521-
assert (
522-
response.json()["detail"][0]["msg"]
523-
== "Value error, 'INVALID_IRI' is not a valid 'IRI'."
524-
)
525-
526514

527515
@pytest.mark.anyio
528516
async def test_api_statements_get_since_timestamp(

0 commit comments

Comments
 (0)