コード例 #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"]}
コード例 #2
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.category_id = self.categories[0]["id"]
     self.new_item = {
         "name": "table",
         "description": "A table",
         "category_id": self.category_id
     }
コード例 #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"])
コード例 #4
0
 def _setup(self):
     self.users = generate_users()
     self.categories = generate_categories()
     self.items = generate_items()
コード例 #5
0
 def _setup(self):
     self.categories = generate_categories()