示例#1
0
 def test_get_latest_tests(self):
     counts = rpc_interface.get_latest_tests(group_by=['job_name'])
     group1, group2 = counts['groups']
     self.assertEquals(group1['pass_count'], 0)
     self.assertEquals(group1['complete_count'], 1)
     self.assertEquals(group1['test_idx'], 2)
     self.assertEquals(group2['test_idx'], 3)
 def test_get_latest_tests(self):
     counts = rpc_interface.get_latest_tests(group_by=['job_name'])
     group1, group2 = counts['groups']
     self.assertEquals(group1['pass_count'], 0)
     self.assertEquals(group1['complete_count'], 1)
     self.assertEquals(group1['test_idx'], 2)
     self.assertEquals(group2['test_idx'], 3)
示例#3
0
 def test_extra_info_test_attributes(self):
     counts = rpc_interface.get_latest_tests(
         group_by=['test_idx'],
         extra_info=['test_attribute_myattr'],
         test_attribute_fields=['myattr'])
     group1 = counts['groups'][0]
     self.assertEquals(group1['extra_info'], ['myval'])
 def test_get_latest_tests(self):
     counts = rpc_interface.get_latest_tests(group_by=["job_name"])
     group1, group2 = counts["groups"]
     self.assertEquals(group1["pass_count"], 0)
     self.assertEquals(group1["complete_count"], 1)
     self.assertEquals(group1["test_idx"], 2)
     self.assertEquals(group2["test_idx"], 3)
示例#5
0
 def test_get_latest_tests_extra_info(self):
     counts = rpc_interface.get_latest_tests(group_by=['job_name'],
                                             extra_info=['job_tag'])
     group1, group2 = counts['groups']
     self.assertEquals(group1['extra_info'], ['1-myjobtag1'])
     self.assertEquals(group2['extra_info'], ['2-myjobtag2'])
 def test_extra_info_test_attributes(self):
     counts = rpc_interface.get_latest_tests(
             group_by=['test_idx'], extra_info=['test_attribute_myattr'],
             test_attribute_fields=['myattr'])
     group1 = counts['groups'][0]
     self.assertEquals(group1['extra_info'], ['myval'])
 def test_get_latest_tests_extra_info(self):
     counts = rpc_interface.get_latest_tests(group_by=['job_name'],
                                             extra_info=['job_tag'])
     group1, group2 = counts['groups']
     self.assertEquals(group1['extra_info'], ['1-myjobtag1'])
     self.assertEquals(group2['extra_info'], ['2-myjobtag2'])
 def test_extra_info_test_attributes(self):
     counts = rpc_interface.get_latest_tests(
         group_by=["test_idx"], extra_info=["test_attribute_myattr"], test_attribute_fields=["myattr"]
     )
     group1 = counts["groups"][0]
     self.assertEquals(group1["extra_info"], ["myval"])
 def test_get_latest_tests_extra_info(self):
     counts = rpc_interface.get_latest_tests(group_by=["job_name"], extra_info=["job_tag"])
     group1, group2 = counts["groups"]
     self.assertEquals(group1["extra_info"], ["1-myjobtag1"])
     self.assertEquals(group2["extra_info"], ["2-myjobtag2"])