Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 5
0
 def test_check_delete_category_follow_id_1(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteCatgoryFollowId("fasdfwwwwssw"), "not found ID")
Exemplo n.º 6
0
 def test_check_delete_category_follow_id(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteCatgoryFollowId(""), "Deleted")
Exemplo n.º 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")
Exemplo n.º 8
0
 def test_check_create_category_null_data(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkingCreateCategoryNullData(), True)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 11
0
 def test_check_delete_brand_follow_id_5(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteBrandFollowId("CETAPHIL"), None)
Exemplo n.º 12
0
 def test_check_delete_brand_follow_id_2(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteBrandFollowId("fasdfwwwwssw"), "not found ID")
Exemplo n.º 13
0
 def test_check_delete_brand_follow_id_1(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteBrandFollowId(""), "Deleted")
Exemplo n.º 14
0
 def test_check_delete_category_follow_id_3(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkDeleteCatgoryFollowId("CST"), None)
Exemplo n.º 15
0
 def test_cheking_create_null_data_1(self):
     comesticObj = Comestic()
     self.assertEqual(comesticObj.checkingCreateNullData_1(), True, "is existed data is null")