Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ben Cox
committed
Jan 20, 2014
1 parent
a01bb6e
commit 3f29f52
Showing
7 changed files
with
41 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ tags | |
/dist | ||
/MANIFEST | ||
/ShopifyAPI.egg-info | ||
*.egg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from ..base import ShopifyResource | ||
|
||
class FulfillmentService(ShopifyResource): | ||
pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"fulfillment_service": { | ||
"name": "SomeService", | ||
"id": 123456, | ||
"inventory_management": false, | ||
"tracking_support": true, | ||
"requires_shipping_method": false, | ||
"format": "json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import shopify | ||
from test_helper import TestCase | ||
|
||
class FulfillmentServiceTest(TestCase): | ||
def test_create_new_fulfillment_service(self): | ||
self.fake("fulfillment_services", method='POST', body=self.load_fixture('fulfillment_service'), headers={'Content-type': 'application/json'}) | ||
|
||
fulfillment_service = shopify.FulfillmentService.create({'name': "SomeService"}) | ||
self.assertEqual("SomeService", fulfillment_service.name) | ||
|
||
def test_get_fulfillment_service(self): | ||
self.fake("fulfillment_services/123456", method='GET', body=self.load_fixture('fulfillment_service')) | ||
|
||
fulfillment_service = shopify.FulfillmentService.find(123456) | ||
self.assertEqual("SomeService", fulfillment_service.name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters