Skip to content

Commit

Permalink
add pagination for genre test
Browse files Browse the repository at this point in the history
  • Loading branch information
PavelErsh committed Mar 31, 2024
1 parent d4f9997 commit 9cb3f0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions async_api/tests/functional/src/test_genre.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ async def insert_genres(es_client: AsyncElasticsearch, genres: list[Genre]):

async def test_list_genres(test_client: AsyncClient, es_client: AsyncElasticsearch):
# Arrange
genres: list[Genre] = GenreFactory.batch(10)
genres: list[Genre] = GenreFactory.batch(15)
await insert_genres(es_client, genres)

# Act
response = await test_client.get("/v1/genres/")
response = await test_client.get("/v1/genres/", params={"page_number": 1, "page_size": 10})

# Assert
assert response.status_code == 200
Expand Down

0 comments on commit 9cb3f0a

Please sign in to comment.