"""This module holds the test urls for the Nissan-specific ``assessments`` app."""

from django.conf.urls import include, url

from mtp.apps.assessments.urls import urlpatterns

from ..urls import extend_urlpatterns

# We need to make sure the `mtp.custom.nissan.apps.assessments` url patterns are included
# so we include them manually and point ``ROOT_URLCONF`` in test cases to this module
# NB: in nominal run mode, this is done by setting ``INSTANCE_NAME`` to 'nissan' but
# we can not rely on the import order in test mode, thus we can not rely
# on the include mecanism in `mtp.apps.assessments.urls`
APP_PATTERNS = urlpatterns + extend_urlpatterns()

urlpatterns = [
    url(r'^cms/assessments/', include(
        APP_PATTERNS,
        namespace='assessments'
    )),
]
