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()
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
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
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