Skip to content

Commit d1c4f72

Browse files
committed
use fake
1 parent 636f734 commit d1c4f72

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test_sync.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def __contains__(self, shipment):
2121

2222

2323
def test_create_shipment_syncs_to_api():
24-
mock_api = mock.Mock()
25-
shipment = create_shipment({'sku1': 10}, incoterm='EXW', cargo_api=mock_api)
26-
assert mock_api.sync.call_args == mock.call(shipment)
24+
api = FakeCargoAPI()
25+
shipment = create_shipment({'sku1': 10}, incoterm='EXW', cargo_api=api)
26+
assert shipment in api

0 commit comments

Comments
 (0)