def real_person(request, dictionary_with_json_files):
     """
     Fixture create model of person which already exists in the system
     :return: Model of Person
     """
     create_person = PersonCreator(dictionary_with_json_files["existing_person"])
     return create_person.create_person_from_json()
Beispiel #2
0
def person(dictionary_with_json_files):
    create_person = PersonCreator(dictionary_with_json_files["person"])
    #create_person = PersonCreator(dictionary_with_json_files["existing_person"])
    person = create_person.create_person_from_json()
    return person
Beispiel #3
0
def invalid_person(dictionary_with_json_files):
    create_person = PersonCreator(dictionary_with_json_files["person_incorrect"])
    person = create_person.create_person_from_json()
    return person
Beispiel #4
0
def person_for_edit(dictionary_with_json_files):
    create_person = PersonCreator(dictionary_with_json_files["person_for_edit"])
    person = create_person.create_person_from_json()
    return person