Created
August 27, 2017 20:23
-
-
Save Weyzu/48df27e0a99b9e26fe48522c1908141b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@pytest.mark.integration | |
def test_person_repository_gets_the_person_by_name(person): | |
retrieved_persons = PersonRepository().get_by_name(name=person.name) | |
assert len((retrieved_persons)) == 1 | |
assert retrieved_persons[0].id == person.id | |
assert retrieved_persons[0].name == person.name | |
assert retrieved_persons[0].age == person.age |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment