From ed79d33dbab8513e4a58e61523052875e43e037d Mon Sep 17 00:00:00 2001 From: Borislav Mavrin Date: Sat, 19 Oct 2024 06:24:49 -0600 Subject: [PATCH] Fix typo in test_api.py --- test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test_api.py b/test_api.py index 89fa1241..0b51e919 100644 --- a/test_api.py +++ b/test_api.py @@ -64,7 +64,7 @@ def test_deallocate(): r = requests.post( f"{url}/allocate", json={"orderid": order1, "sku": sku, "qty": 100} ) - assert r.json()["batchid"] == batch + assert r.json()["batchref"] == batch # cannot allocate second order r = requests.post( @@ -87,4 +87,4 @@ def test_deallocate(): f"{url}/allocate", json={"orderid": order2, "sku": sku, "qty": 100} ) assert r.ok - assert r.json()["batchid"] == batch + assert r.json()["batchref"] == batch