Esempio n. 1
0
 def test_ifttt_trigger_query_08(self):
     """测试size为1"""
     result = ifttt_trigger_query(positionId_Gary, 1, startIndex)
     self.assertIn('"code":0', result.text)
Esempio n. 2
0
 def test_ifttt_trigger_query_09(self):
     """测试请求参数不传size、startIndex"""
     result = ifttt_trigger_query(positionId_Gary)
     self.assertIn('"code":0', result.text)
Esempio n. 3
0
 def test_ifttt_trigger_query_05(self):
     """测试请求参数不传size"""
     result = ifttt_trigger_query(positionId_Gary,
                                  size=None,
                                  startIndex=startIndex)
     self.assertIn('"code":0', result.text)
Esempio n. 4
0
 def test_ifttt_trigger_query_04(self):
     """测试位置id为空"""
     result = ifttt_trigger_query("", size, startIndex)
     self.assertIn('"code":302', result.text)
Esempio n. 5
0
 def test_ifttt_trigger_query_03(self):
     """测试查看其他用户下的位置提供触发器的应用列表"""
     result = ifttt_trigger_query(positionId_Jenny, size, startIndex)
     self.assertIn('"code":710', result.text)
Esempio n. 6
0
 def test_ifttt_trigger_query_02(self):
     """测试位置id错误或不存在"""
     result = ifttt_trigger_query(positionId_wrong, size, startIndex)
     self.assertIn('"code":710', result.text)
Esempio n. 7
0
 def test_ifttt_trigger_query_01(self):
     """测试查看提供触发器的应用列表"""
     result = ifttt_trigger_query(positionId_Gary, size, startIndex)
     self.assertIn('"code":0', result.text)