def test_repository_can_add_a_director(session_factory): repo = SqlAlchemyRepository(session_factory) director = Director("Fred") repo.add_director(director) assert director in repo.get_directors()
def test_repository_can_retrieve_directors(session_factory): repo = SqlAlchemyRepository(session_factory) directors = repo.get_directors() assert len(directors) == 644 assert Director("James Gunn") in directors