def test_repository_returns_an_empty_list_for_non_existent_tag( session_factory): repo = SqlAlchemyRepository(session_factory) article_ids = repo.get_article_ids_for_tag('United States') assert len(article_ids) == 0
def test_repository_returns_article_ids_for_existing_tag(session_factory): repo = SqlAlchemyRepository(session_factory) article_ids = repo.get_article_ids_for_tag('Health') assert article_ids == [1, 2]