fix: resolve remaining Inventory.location test failures and add Grafana config fields
All checks were successful
CI / ruff (push) Successful in 11s
CI / pytest (push) Successful in 38m13s
CI / validate (push) Successful in 23s
CI / deploy (push) Successful in 51s
CI / dependency-scanning (push) Successful in 33s
CI / docs (push) Successful in 41s

- Fix test_inventory_service.py: replace model .location with .bin_location
- Fix test_product_model.py: remove location= from Inventory constructors
- Add grafana_admin_user/password to Settings for production Grafana config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-15 13:44:44 +01:00
parent aad18c27ab
commit 10aa75aa69
3 changed files with 19 additions and 21 deletions

View File

@@ -324,7 +324,6 @@ class TestProductInventoryProperties:
store_id=test_store.id,
warehouse="strassen",
bin_location="SA-01-01",
location="WAREHOUSE_A",
quantity=100,
reserved_quantity=10,
)
@@ -333,7 +332,6 @@ class TestProductInventoryProperties:
store_id=test_store.id,
warehouse="strassen",
bin_location="SA-01-02",
location="WAREHOUSE_B",
quantity=50,
reserved_quantity=5,
)
@@ -382,7 +380,6 @@ class TestProductInventoryProperties:
store_id=test_store.id,
warehouse="strassen",
bin_location="DIG-01-01",
location="DIGITAL_LICENSES",
quantity=10,
reserved_quantity=2,
)