@@ -36,7 +36,7 @@ def test_create_cancel_pickup_request(self):
3636 self .assertEqual (request .serialize (), PickupCancelRequestXML )
3737
3838 def test_request_pickup (self ):
39- with patch ("purplship.mappers.carrier.proxy.http" ) as mock :
39+ with patch ("purplship.mappers.[ carrier] .proxy.http" ) as mock :
4040 mock .return_value = "<a></a>"
4141 purplship .Pickup .schedule (self .PickupRequest ).from_ (gateway )
4242
@@ -46,7 +46,7 @@ def test_request_pickup(self):
4646 )
4747
4848 def test_modify_pickup (self ):
49- with patch ("purplship.mappers.carrier.proxy.http" ) as mocks :
49+ with patch ("purplship.mappers.[ carrier] .proxy.http" ) as mocks :
5050 mocks .side_effect = [
5151 PickupResponseXML ,
5252 ]
@@ -60,7 +60,7 @@ def test_modify_pickup(self):
6060 )
6161
6262 def test_cancel_pickup (self ):
63- with patch ("purplship.mappers.carrier.proxy.http" ) as mock :
63+ with patch ("purplship.mappers.[ carrier] .proxy.http" ) as mock :
6464 mock .return_value = "<a></a>"
6565 purplship .Pickup .cancel (self .PickupCancelRequest ).from_ (gateway )
6666
@@ -70,7 +70,7 @@ def test_cancel_pickup(self):
7070 )
7171
7272 def test_parse_request_pickup_response (self ):
73- with patch ("purplship.mappers.carrier.proxy.http" ) as mock :
73+ with patch ("purplship.mappers.[ carrier] .proxy.http" ) as mock :
7474 mock .return_value = PickupResponseXML
7575 parsed_response = (
7676 purplship .Pickup .schedule (self .PickupRequest ).from_ (gateway ).parse ()
@@ -79,7 +79,7 @@ def test_parse_request_pickup_response(self):
7979 self .assertEqual (DP .to_dict (parsed_response ), DP .to_dict (ParsedPickupResponse ))
8080
8181 def test_parse_modify_pickup_response (self ):
82- with patch ("purplship.mappers.carrier.proxy.http" ) as mocks :
82+ with patch ("purplship.mappers.[ carrier] .proxy.http" ) as mocks :
8383 mocks .side_effect = [
8484 PickupResponseXML ,
8585 ]
@@ -90,7 +90,7 @@ def test_parse_modify_pickup_response(self):
9090 self .assertEqual (DP .to_dict (parsed_response ), DP .to_dict (ParsedPickupResponse ))
9191
9292 def test_parse_void_shipment_response (self ):
93- with patch ("purplship.mappers.carrier.proxy.http" ) as mock :
93+ with patch ("purplship.mappers.[ carrier] .proxy.http" ) as mock :
9494 mock .return_value = PickupCancelResponseXML
9595 parsed_response = (
9696 purplship .Pickup .cancel (self .PickupCancelRequest ).from_ (gateway ).parse ()
0 commit comments