Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
335a060f
Kaydet (Commit)
335a060f
authored
Şub 23, 2013
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor cleanups in templates test imports
üst
687d2e96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
tests.py
tests/regressiontests/templates/tests.py
+2
-6
No files found.
tests/regressiontests/templates/tests.py
Dosyayı görüntüle @
335a060f
...
...
@@ -19,10 +19,9 @@ except ImportError: # Python 2
from
urlparse
import
urljoin
from
django
import
template
from
django.template
import
(
base
as
template_base
,
Context
,
RequestContext
,
Template
)
from
django.core
import
urlresolvers
from
django.template
import
loader
from
django.template
import
(
base
as
template_base
,
loader
,
Context
,
RequestContext
,
Template
,
TemplateSyntaxError
)
from
django.template.loaders
import
app_directories
,
filesystem
,
cached
from
django.test
import
RequestFactory
,
TestCase
from
django.test.utils
import
(
setup_test_template_loader
,
...
...
@@ -365,8 +364,6 @@ class Templates(TestCase):
@override_settings
(
SETTINGS_MODULE
=
None
,
TEMPLATE_DEBUG
=
True
)
def
test_url_reverse_no_settings_module
(
self
):
# Regression test for #9005
from
django.template
import
Template
,
Context
t
=
Template
(
'{
%
url will_not_match
%
}'
)
c
=
Context
()
with
self
.
assertRaises
(
urlresolvers
.
NoReverseMatch
):
...
...
@@ -417,7 +414,6 @@ class Templates(TestCase):
def
test_invalid_block_suggestion
(
self
):
# See #7876
from
django.template
import
Template
,
TemplateSyntaxError
try
:
t
=
Template
(
"{
%
if 1
%
}lala{
%
endblock
%
}{
%
endif
%
}"
)
except
TemplateSyntaxError
as
e
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment