def test_repository_returns_an_empty_list_for_non_existent_genre( session_factory): repo = SqlAlchemyRepository(session_factory) movie_ids = repo.get_movie_ids_for_genre('United States') assert len(movie_ids) == 0
def test_repository_returns_movie_ids_for_existing_genre(session_factory): repo = SqlAlchemyRepository(session_factory) movie_ids = repo.get_movie_ids_for_genre('Action') assert movie_ids == [ 1, 5, 6, 9, 13, 15, 18, 25, 27, 30, 33, 34, 35, 36, 38, 39, 46, 49, 51, 52, 54, 55, 61, 66, 68, 70, 72, 76, 77, 79, 80, 81, 85, 86, 88, 90, 92, 95, 96 ]