Пример #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")