def setUp(self): self.service = Driver.make_bridge() ATsetUP.setup(self.service) self.service.register("user", "pass") self.service.login("user", "pass") self.store_Id = self.service.Open_store("store") self.service.add_product_to_Store(self.store_Id, "grape", 50, "fruits", "little", 50)
def setUp(self): self.service = Driver.make_bridge() ATsetUP.setup(self.service) res = jsonpickle.decode(self.service.searchProduct("Banana")) first_store_id = list(res)[0] self.service.add_product(first_store_id, jsonpickle.encode(res.get(first_store_id)[0]), 2) self.service.buy()
def setUp(self): self.service = Driver.make_bridge() ATsetUP.setup(self.service) res = self.service.searchProduct("Banana") res_dec = jsonpickle.decode(res) # product = res_dec self.first_store_id = list(res_dec)[0] encoded_product = jsonpickle.encode( res_dec.get(self.first_store_id)[0]) self.service.add_product(self.first_store_id, encoded_product, 2) self.service.buy() self.result1 = jsonpickle.decode(self.service.get_purchase_history())
def setUp(self): self.service = Driver.make_bridge() ATsetUP.setup(self.service) self.service.register("user", "pass") self.service.login("user", "pass") res = self.service.searchProduct("Banana") res_dec = jsonpickle.decode(res) # product = res_dec first_store_id = list(res_dec)[0] encoded_product = jsonpickle.encode(res_dec.get(first_store_id)[0]) self.service.add_product(first_store_id, encoded_product, 2) #TODO self.service.buy()
def setUp(self) -> None: self.service = Driver.make_bridge() self.store_id = ATsetUP.setup(self.service) self.service.login("avi", "123") products = jsonpickle.decode(self.service.searchProduct("Apple")) x = 5 self.service.add_product(self.store_id, products, 3) self.service.buy()
def setUp(self): self.service = Driver.make_bridge() self.store_id = ATsetUP.setup(self.service) self.service.register("admin", "1234") self.service.login("admin", "1234") self.service.logout()