Esempio 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
     }
Esempio 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"])
Esempio n. 4
0
 def _setup(self):
     self.users = generate_users()
 def _setup(self):
     self.users = generate_users()
     self.categories = generate_categories()
     self.items = generate_items()
Esempio n. 6
0
 def _setup(self):
     self.users = generate_users()
     self.access_token = generate_token(self.users[0]["id"])