======================================================================================================== test session starts ========================================================================================================
platform darwin -- Python 3.6.6, pytest-4.0.1, py-1.7.0, pluggy-0.8.0
Django settings: tests.settings (from ini file)
rootdir: /Users/samitnuk/projects/__metaclass__/django-oscar-wagtail, inifile: setup.cfg
plugins: pythonpath-0.7.3, django-3.4.4, cov-2.6.0
collected 1 item
tests/integration/test_views.py F [100%]
============================================================================================================= FAILURES ==============================================================================================================
________________________________________________________________________________________________________ test_product_choose ________________________________________________________________________________________________________
arg = ([<URLPattern '' [name='index']>, <URLPattern 'login/' [name='login']>, <URLPattern 'logout/' [name='logout']>, <URLPa...'password_change/done/' [name='password_change_done']>, <URLPattern 'jsi18n/' [name='jsi18n']>, ...], 'admin', 'admin')
namespace = None
def include(arg, namespace=None):
app_name = None
if isinstance(arg, tuple):
# Callable returning a namespace hint.
try:
> urlconf_module, app_name = arg
E ValueError: too many values to unpack (expected 2)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/urls/conf.py:17: ValueError
During handling of the above exception, another exception occurred:
rf = <django.test.client.RequestFactory object at 0x10d5c2160>
@pytest.mark.django_db
def test_product_choose(rf):
request = rf.get('/')
> views.product_choose(request)
tests/integration/test_views.py:9:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django_oscar_wagtail-0.1.3-py3.6.egg/oscar_wagtail/views.py:55: in product_choose
'searchform': searchform,
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/wagtail/admin/modal_workflow.py:15: in render_modal_workflow
html = render_to_string(html_template, template_vars or {}, request=request)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/template/loader.py:62: in render_to_string
return template.render(context, request)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/template/backends/django.py:61: in render
return self.template.render(context)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/template/base.py:175: in render
return self._render(context)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/test/utils.py:98: in instrumented_test_render
return self.nodelist.render(context)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/template/base.py:943: in render
bit = node.render_annotated(context)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/template/base.py:910: in render_annotated
return self.render(context)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/template/defaulttags.py:447: in render
url = reverse(view_name, args=args, kwargs=kwargs, current_app=current_app)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/urls/base.py:58: in reverse
app_list = resolver.app_dict[ns]
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/urls/resolvers.py:484: in app_dict
self._populate()
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/urls/resolvers.py:418: in _populate
for url_pattern in reversed(self.url_patterns):
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/utils/functional.py:36: in __get__
res = instance.__dict__[self.name] = self.func(instance)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/urls/resolvers.py:540: in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/utils/functional.py:36: in __get__
res = instance.__dict__[self.name] = self.func(instance)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/urls/resolvers.py:533: in urlconf_module
return import_module(self.urlconf_name)
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
<frozen importlib._bootstrap>:994: in _gcd_import
???
<frozen importlib._bootstrap>:971: in _find_and_load
???
<frozen importlib._bootstrap>:955: in _find_and_load_unlocked
???
<frozen importlib._bootstrap>:665: in _load_unlocked
???
<frozen importlib._bootstrap_external>:678: in exec_module
???
<frozen importlib._bootstrap>:219: in _call_with_frames_removed
???
tests/project/urls.py:12: in <module>
url(r'^admin/', include(admin.site.urls)),
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
arg = ([<URLPattern '' [name='index']>, <URLPattern 'login/' [name='login']>, <URLPattern 'logout/' [name='logout']>, <URLPa...'password_change/done/' [name='password_change_done']>, <URLPattern 'jsi18n/' [name='jsi18n']>, ...], 'admin', 'admin')
namespace = None
def include(arg, namespace=None):
app_name = None
if isinstance(arg, tuple):
# Callable returning a namespace hint.
try:
urlconf_module, app_name = arg
except ValueError:
if namespace:
raise ImproperlyConfigured(
'Cannot override the namespace for a dynamic module that '
'provides a namespace.'
)
raise ImproperlyConfigured(
'Passing a %d-tuple to include() is not supported. Pass a '
'2-tuple containing the list of patterns and app_name, and '
> 'provide the namespace argument to include() instead.' % len(arg)
)
E django.core.exceptions.ImproperlyConfigured: Passing a 3-tuple to include() is not supported. Pass a 2-tuple containing the list of patterns and app_name, and provide the namespace argument to include() instead.
../../.virtualenvs/django_oscar_wagtail_3.6/lib/python3.6/site-packages/django/urls/conf.py:27: ImproperlyConfigured
Created
December 10, 2018 17:20
-
-
Save samitnuk/7c48927f2ab67f8b94cb191939d5210c to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment