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
9f51d0c8
Kaydet (Commit)
9f51d0c8
authored
Ock 12, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed test from refs #23913 when running tests in reverse.
üst
26a92619
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test_if.py
tests/template_tests/syntax_tests/test_if.py
+2
-0
No files found.
tests/template_tests/syntax_tests/test_if.py
Dosyayı görüntüle @
9f51d0c8
...
...
@@ -2,6 +2,7 @@ import warnings
from
django.template
import
TemplateSyntaxError
from
django.test
import
ignore_warnings
,
SimpleTestCase
from
django.test.utils
import
reset_warning_registry
from
django.utils.deprecation
import
RemovedInDjango20Warning
from
..utils
import
setup
,
TestObj
...
...
@@ -528,6 +529,7 @@ class IfTagTests(SimpleTestCase):
@setup
({
'if-tag-eq-deprecated'
:
'{
%
if foo = bar
%
}yes{
%
else
%
}no{
%
endif
%
}'
},
test_once
=
True
)
def
test_if_tag_eq_deprecated
(
self
):
reset_warning_registry
()
with
warnings
.
catch_warnings
(
record
=
True
)
as
warns
:
warnings
.
simplefilter
(
'always'
)
output
=
self
.
engine
.
render_to_string
(
'if-tag-eq-deprecated'
)
...
...
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