Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4b9a2ce

Browse files
committed
fix redis e2e test
1 parent 9535cba commit 4b9a2ce

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/e2e/test_external_events.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ def test_change_batch_quantity_leading_to_reallocation():
1414
earlier_batch, later_batch = random_batchref("old"), random_batchref("newer")
1515
api_client.post_to_add_batch(earlier_batch, sku, qty=10, eta="2011-01-01")
1616
api_client.post_to_add_batch(later_batch, sku, qty=10, eta="2011-01-02")
17-
response = api_client.post_to_allocate(orderid, sku, 10)
18-
assert response.json()["batchref"] == earlier_batch
17+
r = api_client.post_to_allocate(orderid, sku, 10)
18+
assert r.ok
19+
response = api_client.get_allocation(orderid)
20+
assert response.json()[0]["batchref"] == earlier_batch
1921

2022
subscription = redis_client.subscribe_to("line_allocated")
2123

0 commit comments

Comments
 (0)