[go: nahoru, domu]

Skip to content

Commit

Permalink
Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas committed Sep 25, 2019
1 parent 27851b8 commit 9f8251b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ dist
.coverage*
.env
example/example.db
.tox

2 changes: 1 addition & 1 deletion example/app/test_msf.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def test_named_groups_form(self):
"""<li><label for="id_published_in_1_2"><input id="id_published_in_1_2" name="published_in" type="checkbox" value="AZ" /> Arizona</label></li></ul></li></ul></p>""")

actual_html = form.as_p()
if (1, 11) <= VERSION < (2, 0):
if (1, 11) <= VERSION:
# Django 1.11+ does not assign 'for' attributes on labels if they
# are group labels
expected_html = expected_html.replace('label for="id_published_in_0"', 'label')
Expand Down
2 changes: 1 addition & 1 deletion example/example/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
'django.contrib.messages',
'django.contrib.staticfiles',
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',

Expand Down
5 changes: 0 additions & 5 deletions example/example/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

from django import VERSION
from django.conf import settings
from django.contrib import admin
from django.views.static import serve


Expand All @@ -41,8 +40,6 @@ def patterns(prefix, *args):
from django.urls import include, url


admin.autodiscover()

js_info_dict = {
'packages': ('django.conf',),
}
Expand All @@ -51,7 +48,6 @@ def patterns(prefix, *args):
urlpatterns = patterns(
'',
url(r'^', include('app.urls')),
url(r'^admin/', include(admin.site.urls)),
)
urlpatterns += patterns(
'',
Expand All @@ -60,7 +56,6 @@ def patterns(prefix, *args):
else:
urlpatterns = [
url(r'^', include('app.urls')),
url(r'^admin/', admin.site.urls),
url(
r'^%s(?P<path>.*)$' % settings.MEDIA_URL[1:],
serve,
Expand Down

0 comments on commit 9f8251b

Please sign in to comment.