1
Fork 0

Added test url definitions

This commit is contained in:
Jake Howard 2015-12-09 22:23:06 +00:00
parent 8c0ededb16
commit 9e1f79b6a2
3 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,6 @@
from django.conf.urls import include, url
from django_client_reverse.views import Reverser
urlpatterns = [
url(r'^$', Reverser.as_view(), name="reverser")
]

View file

@ -1,5 +1,13 @@
from django.conf.urls import include, url
from .views import Reverser
from os import environ
from . import test_urls
urlpatterns = [
url(r'^$', Reverser.as_view(), name="reverser")
]
if environ.get('IN_URL_TEST', False):
urlpatterns += [
url(r'^tests/', include(test_urls, namespace="tests"))
]

7
runtests Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
set -e
export IN_URL_TEST=true
manage.py test $@