Created
November 22, 2012 23:12
-
-
Save nvbn/4133268 to your computer and use it in GitHub Desktop.
plata do not pass the tests
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
E.EEEE/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.395323) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.399392) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.537171) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.539207) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.656919) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.658359) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.800066) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.803915) while time zone support is active. | |
RuntimeWarning) | |
EE/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.991539) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:14.993778) while time zone support is active. | |
RuntimeWarning) | |
./home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.112124) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.115253) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.260701) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.264492) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.413956) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.417680) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.558724) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.561042) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.702393) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.706195) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.851415) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:15.855240) while time zone support is active. | |
RuntimeWarning) | |
E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:16.002909) while time zone support is active. | |
RuntimeWarning) | |
/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:16.006611) while time zone support is active. | |
RuntimeWarning) | |
EEEEE/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:16.281560) while time zone support is active. | |
RuntimeWarning) | |
.EEE/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:16.720632) while time zone support is active. | |
RuntimeWarning) | |
..E/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:16.793406) while time zone support is active. | |
RuntimeWarning) | |
.EEEE/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py:808: RuntimeWarning: DateTimeField received a naive datetime (2012-11-23 03:10:17.517228) while time zone support is active. | |
RuntimeWarning) | |
EEEEE | |
====================================================================== | |
ERROR: test_01_products (plata.tests.admin.AdminTest) | |
Test whether the administration interface is well behaved | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/admin.py", line 58, in test_01_products | |
self.client.post(self.product_admin_url + 'add/', product_data) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/test/client.py", line 449, in post | |
response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/test/client.py", line 262, in post | |
return self.request(**r) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response | |
response = callback(request, **param_dict) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view | |
response = view_func(request, *args, **kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/views/defaults.py", line 20, in page_not_found | |
t = loader.get_template(template_name) # You need to create a 404.html template. | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/template/loader.py", line 145, in get_template | |
template, origin = find_template(template_name) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template | |
raise TemplateDoesNotExist(name) | |
TemplateDoesNotExist: 404.html | |
====================================================================== | |
ERROR: test_01_basic_order (plata.tests.models.ModelTest) | |
Test basic order and product properties | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 65, in test_01_basic_order | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_02_eur_order (plata.tests.models.ModelTest) | |
Test basic order in EUR works as expected | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 122, in test_02_eur_order | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_03_mixed_currencies (plata.tests.models.ModelTest) | |
Test orders with mixed currencies are rejected during validation | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 136, in test_03_mixed_currencies | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_04_order_modify_item (plata.tests.models.ModelTest) | |
Test Order.modify_item method is well behaving | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 157, in test_04_order_modify_item | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_05_order_status (plata.tests.models.ModelTest) | |
Test order status modification | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 184, in test_05_order_status | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_06_order_percentage_discount (plata.tests.models.ModelTest) | |
Test a simple percentage discount | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 203, in test_06_order_percentage_discount | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_07_order_amount_discount (plata.tests.models.ModelTest) | |
Test a simple amount discount | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 251, in test_07_order_amount_discount | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_08_order_payment (plata.tests.models.ModelTest) | |
Test basic order payment model behavior | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 310, in test_08_order_payment | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_09_selective_discount (plata.tests.models.ModelTest) | |
Test applying discounts with product restriction | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 355, in test_09_selective_discount | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_11_multiple_discounts (plata.tests.models.ModelTest) | |
Test behavior of orders with more than one discount | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 409, in test_11_multiple_discounts | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_12_order4567_test (plata.tests.models.ModelTest) | |
Reproduce order ID 4567 of a deployed satchmo shop installation | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 444, in test_12_order4567_test | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_13_order4206_test (plata.tests.models.ModelTest) | |
Reproduce order ID 4206 of a deployed satchmo shop installation | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 489, in test_13_order4206_test | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_14_invoice2009_0170_0002_test (plata.tests.models.ModelTest) | |
Reproduce invoide of a deployed metronom installation | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 534, in test_14_invoice2009_0170_0002_test | |
p = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_15_remaining_discount (plata.tests.models.ModelTest) | |
Test determination of remaining discount amount | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 567, in test_15_remaining_discount | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_16_payment (plata.tests.models.ModelTest) | |
Test order with payments and discounts | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 589, in test_16_payment | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_17_stocktransactions (plata.tests.models.ModelTest) | |
Simple stock transaction test | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 625, in test_17_stocktransactions | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_18_amount_discount_incl_tax (plata.tests.models.ModelTest) | |
Test discount amounts specified with tax included | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 683, in test_18_amount_discount_incl_tax | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_20_shipping_discount (plata.tests.models.ModelTest) | |
Test applying discounts to shipping too | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 726, in test_20_shipping_discount | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_22_tax_rounding (plata.tests.models.ModelTest) | |
Test tax rounding behavior | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 756, in test_22_tax_rounding | |
p1 = self.create_product(stock=10) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_23_mixed_tax (plata.tests.models.ModelTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 801, in test_23_mixed_tax | |
p1 = self.create_product(stock=10) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_25_discount_validation (plata.tests.models.ModelTest) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 843, in test_25_discount_validation | |
p1 = self.create_product(stock=10) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_26_discounts (plata.tests.models.ModelTest) | |
Discount testing reloaded | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/models.py", line 891, in test_26_discounts | |
name='Ein Paar Hosen', | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_01_cart_empty (plata.tests.views.ViewTest) | |
Test cart is empty redirects work properly | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 33, in test_01_cart_empty | |
self.assertContains(self.client.get('/cart/'), 'Cart is empty') | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/test/client.py", line 439, in get | |
response = super(Client, self).get(path, data=data, **extra) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/test/client.py", line 244, in get | |
return self.request(**r) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 150, in get_response | |
response = callback(request, **param_dict) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view | |
response = view_func(request, *args, **kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/views/defaults.py", line 20, in page_not_found | |
t = loader.get_template(template_name) # You need to create a 404.html template. | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/template/loader.py", line 145, in get_template | |
template, origin = find_template(template_name) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template | |
raise TemplateDoesNotExist(name) | |
TemplateDoesNotExist: 404.html | |
====================================================================== | |
ERROR: test_04_shopping (plata.tests.views.ViewTest) | |
Test shopping, checkout and order PDF generation in one go | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 58, in test_04_shopping | |
p1 = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_06_postfinance_ipn (plata.tests.views.ViewTest) | |
Test Postfinance server-to-server request handling | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 271, in test_06_postfinance_ipn | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_07_paypal_ipn (plata.tests.views.ViewTest) | |
Test PayPal Instant Payment Notification handler | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 367, in test_07_paypal_ipn | |
product = self.create_product() | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_08_checkout_preexisting_user (plata.tests.views.ViewTest) | |
Test checkout behavior using already existing user without contact | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 403, in test_08_checkout_preexisting_user | |
p1 = self.create_product(stock=100) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_09_checkout_create_user (plata.tests.views.ViewTest) | |
Test checkout behavior without existing user or contact | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 446, in test_09_checkout_create_user | |
p1 = self.create_product(stock=100) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_10_login_in_checkout_preexisting_contact (plata.tests.views.ViewTest) | |
Test checkout behavior using already existing contact and user | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 500, in test_10_login_in_checkout_preexisting_contact | |
p1 = self.create_product(stock=100) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_11_login_in_checkout_create_contact (plata.tests.views.ViewTest) | |
Test checkout using already existing user, but no contact | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 551, in test_11_login_in_checkout_create_contact | |
p1 = self.create_product(stock=100) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_12_insufficient_stock (plata.tests.views.ViewTest) | |
Test insufficient stock handling in checkout process | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 592, in test_12_insufficient_stock | |
p1 = self.create_product(stock=10) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_13_expired_reservation (plata.tests.views.ViewTest) | |
Test payment process reservation expiration | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 606, in test_13_expired_reservation | |
p1 = self.create_product(stock=10) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
====================================================================== | |
ERROR: test_14_remaining_discount (plata.tests.views.ViewTest) | |
Test that a new discount is created when there is an amount remaining | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/views.py", line 645, in test_14_remaining_discount | |
p1 = self.create_product(stock=10) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/plata/tests/base.py", line 110, in create_product | |
name='Test Product %s' % PRODUCTION_CREATION_COUNTER, | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/manager.py", line 137, in create | |
return self.get_query_set().create(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/query.py", line 375, in create | |
obj = self.model(**kwargs) | |
File "/home/nvbn/work/totemi/ENV/local/lib/python2.7/site-packages/django/db/models/base.py", line 367, in __init__ | |
raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0]) | |
TypeError: 'name' is an invalid keyword argument for this function | |
---------------------------------------------------------------------- | |
Ran 40 tests in 4.029s | |
FAILED (errors=34) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment