As shown, the actual count of history movies is only 15, but the test is looking for 1503. No way my code can pass the test.
@pytest.mark.paging
def test_supports_paging_by_genre(client):
filter = {'genres': ['History']}
(movies0, results0) = get_movies(filter, 0, 20)
assert len(list(movies0)) == 20
assert results0 == 1503
last_page = int(1503 / 20)
(movies2, results2) = get_movies(filter, last_page, 20)
assert len(list(movies2)) == results0 % 20
E AssertionError: assert 23 == (1503 % 20)