コード例 #1
0
    def test_check_update_category_follow_id_1(self):
        comesticObj = Comestic()

        req = {
            "sdfwewwww": "1121"
        }
        self.assertEqual(comesticObj.checkUpdateCategoryFollowId("CSCT",req).status_code, 501, comesticObj.checkUpdateCategoryFollowId("CSCT",req).text)
コード例 #2
0
    def test_check_update_brand_follow_id_3(self):
        comesticObj = Comestic()
        req = {

        }
        self.assertEqual(comesticObj.checkUpdateBrandFollowId("FCWWFWFFFADFW", req).status_code, 200)
        print(comesticObj.checkUpdateBrandFollowId("FCWWFWFFFADFW", req).text)
コード例 #3
0
 def test_check_update_category_follow_id_2(self):
     comesticObj = Comestic()
     req = {
         "categoryId": "CSCT",
         "name": "Chăm Sóc Cơ Thể",
         "description": "IIIAII",
         "createdDate": "2012-02-02T00:00:00",
         "note": "Danh mục",
         "product": None
     }
     self.assertEqual(comesticObj.checkUpdateCategoryFollowId("CSCT", req).status_code, 200)
     print(comesticObj.checkUpdateCategoryFollowId("CSCT", req).text)
コード例 #4
0
 def test_check_update_brand_follow_id_2(self):
     comesticObj = Comestic()
     req = {
         "brandId": "Acnes",
         "name": "Acnes",
         "phoneNumber": "9012301",
         "email": "ffwwwfwwww",
         "description": "Sản phẩm trị mụn",
         "startedDate": "2021-05-05T00:00:00",
         "note": "",
         "product": None
     }
     self.assertEqual(comesticObj.checkUpdateBrandFollowId("Acnes", req).status_code, 200)
     print(comesticObj.checkUpdateBrandFollowId("Acnes", req).text)
コード例 #5
0
 def test_check_delete_category_follow_id_1(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteCatgoryFollowId("fasdfwwwwssw"), "not found ID")
コード例 #6
0
 def test_check_delete_category_follow_id(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteCatgoryFollowId(""), "Deleted")
コード例 #7
0
 def test_check_create_category_null_data_1(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkCreateCatgoryNullData_1(), True, "is existed data category is null")
コード例 #8
0
 def test_check_create_category_null_data(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkingCreateCategoryNullData(), True)
コード例 #9
0
 def test_check_update_brand_follow_id_1(self):
     comesticObj = Comestic()
     req = {
         "AASDWCVC": "2021-03-04"
     }
     self.assertEqual(comesticObj.checkUpdateBrandFollowId("Acnes", req).status_code, 501,comesticObj.checkUpdateBrandFollowId("Acnes", req).text)
コード例 #10
0
    def test_check_update_brand_follow_id(self):
        comesticObj = Comestic()
        req = {

        }
        self.assertEqual(comesticObj.checkUpdateBrandFollowId("Acnes", req).status_code, 501, comesticObj.checkUpdateBrandFollowId("Acnes", req).text)
コード例 #11
0
 def test_check_delete_brand_follow_id_5(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteBrandFollowId("CETAPHIL"), None)
コード例 #12
0
 def test_check_delete_brand_follow_id_2(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteBrandFollowId("fasdfwwwwssw"), "not found ID")
コード例 #13
0
 def test_check_delete_brand_follow_id_1(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteBrandFollowId(""), "Deleted")
コード例 #14
0
 def test_check_delete_category_follow_id_3(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteCatgoryFollowId("CST"), None)
コード例 #15
0
 def test_cheking_create_null_data_1(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkingCreateNullData_1(), True, "is existed data is null")