1 parent 636f734 commit d1c4f72Copy full SHA for d1c4f72
1 file changed
test_sync.py
@@ -21,6 +21,6 @@ def __contains__(self, shipment):
21
22
23
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)
+ api = FakeCargoAPI()
+ shipment = create_shipment({'sku1': 10}, incoterm='EXW', cargo_api=api)
+ assert shipment in api
0 commit comments