You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating test database foralias'default'...
System check identified some issues:
WARNINGS:
checkout.Order: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the CheckoutConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
checkout.OrderLineItem: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the CheckoutConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
products.Product: (models.W042) Auto-created primary key used when not defining a primary key type, by default 'django.db.models.AutoField'.
HINT: Configure the DEFAULT_AUTO_FIELD setting or the ProductsConfig.default_auto_field attribute to point to a subclass of AutoField, e.g. 'django.db.models.BigAutoField'.
System check identified 3 issues (0 silenced).
F..EFE
======================================================================
ERROR: test_cart_resolves (cart.tests.CartTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/yezz123/Documents/E-Commerce-Boilerplate/cart/tests.py", line 9, in test_cart_resolves
cart_page = resolvers('/cart/')
TypeError: 'module' object is not callable
======================================================================
ERROR: search.tests (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: search.tests
Traceback (most recent call last):
File "/usr/lib/python3.8/unittest/loader.py", line 436, in _find_test_path
module = self._get_module_from_name(name)
File "/usr/lib/python3.8/unittest/loader.py", line 377, in _get_module_from_name
__import__(name)
File "/home/yezz123/Documents/E-Commerce-Boilerplate/search/tests.py", line 3, in<module>
from .views import do_search
ImportError: cannot import name 'do_search' from 'search.views' (/home/yezz123/Documents/E-Commerce-Boilerplate/search/views.py)
======================================================================
FAIL: test_registration_form (accounts.tests.CustomUserTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/yezz123/Documents/E-Commerce-Boilerplate/accounts/tests.py", line 17, in test_registration_form
self.assertTrue(form.is_valid())
AssertionError: False is not true
======================================================================
FAIL: test_str (products.tests.ProductTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/yezz123/Documents/E-Commerce-Boilerplate/products/tests.py", line 9, in test_str
self. assertEqual(str(test_name), 'product')
AssertionError: ''!= 'product'
+ product
----------------------------------------------------------------------
Ran 6 tests in 0.097s
FAILED (failures=2, errors=2)
Destroying test database foralias'default'...
The text was updated successfully, but these errors were encountered:
When i run the test command i get this issue
The text was updated successfully, but these errors were encountered: