Ejemplo n.º 1
0
 def _setup(self):
     self.users = generate_users()
     self.categories = generate_categories()
     self.items = generate_items()
     self.access_token = generate_token(self.users[0]["id"])
     self.put_item = {"name": "lamp2",
                      "description": "Slightly better lamp",
                      "category_id": self.categories[0]["id"]}
 def _setup(self):
     self.users = generate_users()
     self.categories = generate_categories()
     self.items = generate_items()
     self.access_token = generate_token(self.users[0]["id"])
     self.category_id = self.categories[0]["id"]
     self.new_item = {
         "name": "table",
         "description": "A table",
         "category_id": self.category_id
     }
Ejemplo n.º 3
0
 def _setup(self):
     self.users = generate_users()
     self.categories = generate_categories()
     self.items = generate_items()
     self.access_token = generate_token(self.users[0]["id"])
 def _setup(self):
     self.users = generate_users()
     self.categories = generate_categories()
     self.items = generate_items()
 def _setup(self):
     self.categories = generate_categories()