Exemplo n.º 1
0
 def test_select_team_member(self):
     u"""查询团队成员接口"""
     teamId = get_team_id()
     logger.warning(params_log + str(teamId))
     r = requests.post(url=self.url, data=teamId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Exemplo n.º 2
0
 def test_calculate_add_seat_year(self):
     u"""席位扩充时长计算接口"""
     teamId = get_team_id()
     logger.warning(params_log + str(teamId))
     r = requests.post(url=self.url, data=teamId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Exemplo n.º 3
0
 def test_markup_delete_team(self):
     u"""标记删除团队接口(回收团队会议室号)"""
     create_team()
     teamId = get_team_id()
     logger.warning(params_log + str(teamId))
     r = requests.post(url=self.url, data=teamId)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Exemplo n.º 4
0
 def test_exit_team(self):
     u"""团队成员退出接口"""
     create_team()
     teamId = get_team_id()
     new_params = dict(teamId, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
 def test_create_times_order(self):
     u"""创建购买时长的接口(根据用户时长)"""
     teamId = get_team_id()
     userToken = get_token()
     new_params = dict(userToken, **teamId, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
Exemplo n.º 6
0
 def test_add_team_member(self):
     u"""添加团队成员接口"""
     create_team()
     teamId = get_team_id()
     userToken = get_token()
     new_params = dict(userToken, **teamId, **self.params)
     logger.warning(params_log + str(new_params))
     r = requests.post(url=self.url, data=new_params)
     res = r.json()
     result = json.dumps(res, ensure_ascii=False)
     logger.warning(res_log + result)
     assert_equal(r.status_code, 200)
     assert_equal(res['status'], self.res['status'])
     assert_equal(res['msg'], self.res['msg'])
     delete_team(teamId)
     logger.info('删除团队成功')