Changed to show filament price if no spool price set and added tests

This commit is contained in:
pdsccode
2024-01-06 21:42:09 +01:00
parent 291d61fbba
commit 577ed1e680
4 changed files with 38 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ def test_get_spool(random_filament: dict[str, Any]):
location = "The Pantry"
lot_nr = "123456789"
comment = "abcdefghåäö"
price = 25
archived = True
result = httpx.post(
f"{URL}/api/v1/spool",
@@ -27,6 +28,7 @@ def test_get_spool(random_filament: dict[str, Any]):
"location": location,
"lot_nr": lot_nr,
"comment": comment,
"price": price,
"archived": archived,
},
)