def test_repository_returns_an_empty_list_for_non_existent_genre( session_factory): repo = SqlAlchemyRepository(session_factory) genre_ids = repo.get_movie_ids_by_genre('United States') assert len(genre_ids) == 0
def test_repository_returns_movie_ids_for_existing_genre(session_factory): repo = SqlAlchemyRepository(session_factory) movie_ids = repo.get_movie_ids_by_genre('Action') assert 991 in movie_ids assert 949 in movie_ids