Add required battery_size to devices, filter install panels by size
This commit is contained in:
+2
-2
@@ -42,8 +42,8 @@ def seeded_client(app):
|
||||
id=3 BrandX 002 (BrandX, retired)
|
||||
"""
|
||||
with app.test_client() as c:
|
||||
c.post("/device/add", data={"name": "Device A", "battery_slots": "2"})
|
||||
c.post("/device/add", data={"name": "Device B", "battery_slots": "1"})
|
||||
c.post("/device/add", data={"name": "Device A", "battery_slots": "2", "battery_size": "AA"})
|
||||
c.post("/device/add", data={"name": "Device B", "battery_slots": "1", "battery_size": "AA"})
|
||||
c.post("/battery/add", data={"brand": "BrandX", "count": "1"}) # id=1
|
||||
c.post("/battery/add", data={"brand": "BrandY", "count": "1"}) # id=2
|
||||
c.post("/battery/add", data={"brand": "BrandX", "count": "1"}) # id=3
|
||||
|
||||
Reference in New Issue
Block a user