示例#1
0
 def test_detect_case_Y006(self):  # TODO: not tested yet due to time
     target = 1917
     df, error = exe(target, "openstack")
     assert df.at[0, "is_added_satd"] == True
示例#2
0
 def test_detect_case_N006(self):
     target = 100001
     df, error = exe(target, "qt")
     if len(error["not target sub-project"]) == 0:
         self.fail()
示例#3
0
 def test_detect_case_Y005(self):
     target = 665
     df, error = exe(target, "openstack")
     print(df.at[0, "is_added_satd"])
     assert df.at[0, "is_added_satd"] == True
示例#4
0
 def test_detect_case_N004(self):
     target = 663
     df, error = exe(target, "qt")
     print(df.at[0, "is_added_satd"])
     assert df.at[0, "is_added_satd"] == False
示例#5
0
 def test_detect_case_N005(self):
     target = 100119
     df, error = exe(target, "qt")
     if len(error["no contents"]) == 0:
         self.fail()
示例#6
0
 def test_detect_case_N003(self):  # TODO: not tested yet due to error
     target = 112
     df, error = exe(target, "qt")
     print(df.at[0, "is_added_satd"])
     assert df.at[0, "is_added_satd"] == False
示例#7
0
 def test_detect_case_N002(self):
     target = 452
     df, error = exe(target, "openstack")
     print(df.at[0, "is_added_satd"])
     assert df.at[0, "is_added_satd"] == False
示例#8
0
 def test_detect_case_Y004(self):  # TODO: not tested yet
     target = 2269
     df, error = exe(target, "openstack")
     print(df.at[0, "is_deleted_satd"])
     assert df.at[0, "is_deleted_satd"] == True
示例#9
0
 def test_detect_case_Y002(self):
     target = 879
     df, error = exe(target, "openstack")
     print(df.at[0, "is_deleted_satd"])
     assert df.at[0, "is_deleted_satd"] == True
示例#10
0
 def test_detect_case_N001(self):
     target = 146
     df, error = exe(target, "openstack")
     print(df.at[0, "is_deleted_satd"])
     assert df.at[0, "is_deleted_satd"] == False