Skip to content

Commit

Permalink
fixup! 🏗️(project) migrate to pydantic v2 and switch tests to `poly…
Browse files Browse the repository at this point in the history
…factory`
  • Loading branch information
wilbrdt committed Apr 15, 2024
1 parent c10b8c3 commit e46e3b3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions tests/api/test_statements_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,18 +511,6 @@ async def test_api_statements_get_by_activity(
assert response.status_code == 200
assert response.json() == {"statements": [statements[1]]}

# Check that badly formatted activity returns an error
response = await client.get(
"/xAPI/statements/?activity=INVALID_IRI",
headers={"Authorization": f"Basic {basic_auth_credentials}"},
)

assert response.status_code == 422
assert (
response.json()["detail"][0]["msg"]
== "Value error, 'INVALID_IRI' is not a valid 'IRI'."
)


@pytest.mark.anyio
async def test_api_statements_get_since_timestamp(
Expand Down

0 comments on commit e46e3b3

Please sign in to comment.