From 4f99ba84b3efd4b33721288cbbe1a605c7f937fd Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sun, 2 Apr 2017 19:58:18 +0200 Subject: [PATCH] Removed unused code in i18n view_tests Unused since 2b20e4148f4f54431834e6a43af6c39dc75e6362. --- .../templates/old_jsi18n-multi-catalogs.html | 17 ------- tests/view_tests/templates/old_jsi18n.html | 44 ------------------- tests/view_tests/urls.py | 40 ----------------- tests/view_tests/views.py | 8 ---- 4 files changed, 109 deletions(-) delete mode 100644 tests/view_tests/templates/old_jsi18n-multi-catalogs.html delete mode 100644 tests/view_tests/templates/old_jsi18n.html diff --git a/tests/view_tests/templates/old_jsi18n-multi-catalogs.html b/tests/view_tests/templates/old_jsi18n-multi-catalogs.html deleted file mode 100644 index eccd2d6043..0000000000 --- a/tests/view_tests/templates/old_jsi18n-multi-catalogs.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - -

- -

-

- -

- - diff --git a/tests/view_tests/templates/old_jsi18n.html b/tests/view_tests/templates/old_jsi18n.html deleted file mode 100644 index 03e738d867..0000000000 --- a/tests/view_tests/templates/old_jsi18n.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -

- -

- -

- -

- -

- -

- -

- -

- -

- -

- -

- -

- - - diff --git a/tests/view_tests/urls.py b/tests/view_tests/urls.py index bb450717a8..1c1f0d0e12 100644 --- a/tests/view_tests/urls.py +++ b/tests/view_tests/urls.py @@ -12,46 +12,6 @@ base_dir = path.dirname(path.abspath(__file__)) media_dir = path.join(base_dir, 'media') locale_dir = path.join(base_dir, 'locale') -js_info_dict = { - 'domain': 'djangojs', - 'packages': ('view_tests',), -} - -js_info_dict_english_translation = { - 'domain': 'djangojs', - 'packages': ('view_tests.app0',), -} - -js_info_dict_multi_packages1 = { - 'domain': 'djangojs', - 'packages': ('view_tests.app1', 'view_tests.app2'), -} - -js_info_dict_multi_packages2 = { - 'domain': 'djangojs', - 'packages': ('view_tests.app3', 'view_tests.app4'), -} - -js_info_dict_admin = { - 'domain': 'djangojs', - 'packages': ('django.contrib.admin', 'view_tests'), -} - -js_info_dict_app1 = { - 'domain': 'djangojs', - 'packages': ('view_tests.app1',), -} - -js_info_dict_app2 = { - 'domain': 'djangojs', - 'packages': ('view_tests.app2',), -} - -js_info_dict_app5 = { - 'domain': 'djangojs', - 'packages': ('view_tests.app5',), -} - urlpatterns = [ url(r'^$', views.index_page), diff --git a/tests/view_tests/views.py b/tests/view_tests/views.py index cdc3f533ef..ce0079a355 100644 --- a/tests/view_tests/views.py +++ b/tests/view_tests/views.py @@ -76,18 +76,10 @@ def jsi18n(request): return render(request, 'jsi18n.html') -def old_jsi18n(request): - return render(request, 'old_jsi18n.html') - - def jsi18n_multi_catalogs(request): return render(request, 'jsi18n-multi-catalogs.html') -def old_jsi18n_multi_catalogs(request): - return render(request, 'old_jsi18n-multi-catalogs.html') - - def raises_template_does_not_exist(request, path='i_dont_exist.html'): # We need to inspect the HTML generated by the fancy 500 debug view but # the test client ignores it, so we send it explicitly.