def setUp(self): self.service = Driver.make_bridge() ATsetUP.setup(self.service) self.service = Driver.make_bridge() ATsetUP.setup(self.service) self.service.register("user", "pass") self.service.login("user", "pass") res = jsonpickle.decode(self.service.searchProduct("Banana")) first_store_id = list(res)[0] enc = jsonpickle.encode(res.get(first_store_id)[0]) self.service.add_product(first_store_id, enc, 2) self.service.buy()
def setUp(self) -> None: self.service = Driver.make_bridge() self.service.register("new manager", "new pass") self.service.register("owner", "pass") self.service.login("owner", "pass") self.store_id = self.service.Open_store("my store") self.service.add_new_store_manager("new manager", self.store_id)
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() 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() self.service.register("username", "password")
def setUp(self): self.service = Driver.make_bridge()
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()