Created
September 29, 2014 07:33
-
-
Save PritishC/09c9b6b502fd0fa25dfa to your computer and use it in GitHub Desktop.
Testing endicia:carrier.py
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
def test_get_rates(self): | |
""" | |
Test the get_rates method of Carrier. | |
""" | |
with Transaction().start(DB_NAME, USER, context=CONTEXT) as tr: | |
tr.set_context(sale=self.sale) | |
print(self.carrier.get_rates()) | |
Stack Trace: | |
ERROR: test_get_rates (tests.test_carrier.CarrierTestCase) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/pritishc/RestOfFileSystem/nereid-stuff/trytond-endicia-integration/tests/test_carrier.py", line 57, in test_get_rates | |
print(self.carrier.get_rates()) | |
File "/home/pritishc/.virtualenvs/endicia-usps/local/lib/python2.7/site-packages/trytond_endicia_integration-3.2.0.1-py2.7.egg/trytond/modules/endicia_integration/carrier.py", line 41, in get_rates | |
return Sale(sale).get_endicia_shipping_rates() | |
File "/home/pritishc/.virtualenvs/endicia-usps/local/lib/python2.7/site-packages/trytond-3.2.2-py2.7.egg/trytond/model/modelstorage.py", line 1134, in __init__ | |
id = int(id) | |
TypeError: int() argument must be a string or a number, not 'PoolMeta' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment