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()
コード例 #2
0
ファイル: conftest.py プロジェクト: ITsvetkoFF/Kv-010.ifnul
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
コード例 #3
0
ファイル: conftest.py プロジェクト: ITsvetkoFF/Kv-010.ifnul
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
コード例 #4
0
ファイル: conftest.py プロジェクト: ITsvetkoFF/Kv-010.ifnul
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