def test_repository_can_get_last_movie(session_factory):
    repo = SqlAlchemyRepository(session_factory)

    movie = repo.get_last_movie()
    assert movie.title == 'Passengers'
Example #2
0
def test_repository_can_get_last_movie(session_factory):
    repo = SqlAlchemyRepository(session_factory)
    movie = repo.get_last_movie()

    assert movie == Movie('Nine Lives', 2016)