Пример #1
0
 def test_update_project(self):
     write_test_data()
     session = connection.get_session()
     project_api = ProjectApi(session)
     project = {"extra": '{"test": "test_project2_update_project"}', "main": "test"}
     project_api.update_project(project_id="1", project=project)
     ref = project_api.get_project(project_id="1")
     assert ref.get("extra").get("main") == "test"
Пример #2
0
 def test_get_project(self):
     write_test_data()
     session = connection.get_session()
     project_api = ProjectApi(session)
     project = project_api.get_project("1")
     assert project.get("name") == "test_project1"