Example #1
0
 def when_get_person_with_her_email(self):
     self.result = PersonRepo().get_person(email=self.orm_person.email)
     return self
Example #2
0
 def when_update_person_entity(self):
     self.result = PersonRepo().update_person(self.person)
     return self
Example #3
0
 def when_get_person_with_her_id(self):
     self.result = PersonRepo().get_person(id=str(self.orm_person.id))
     return self
Example #4
0
 def when_create_guest_person(self):
     self.result = PersonRepo().create_guest_person()
     return self
Example #5
0
 def given_a_person(self):
     self.persons.append(PersonRepo().create_guest_person())
     return self
Example #6
0
 def given_a_person(self):
     self.person = PersonRepo().create_guest_person()
     return self
 def when_get_person_with_her_username(self):
     self.result = PersonRepo().get_person(
         username=self.orm_person.username)
     return self