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
60b095cc
Kaydet (Commit)
60b095cc
authored
May 11, 2016
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #24046 -- Fixed a template test when run in reverse.
üst
baf3ec2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
test_chaining.py
tests/template_tests/filter_tests/test_chaining.py
+2
-0
No files found.
tests/template_tests/filter_tests/test_chaining.py
Dosyayı görüntüle @
60b095cc
import
warnings
from
django.test
import
SimpleTestCase
,
ignore_warnings
from
django.test.utils
import
reset_warning_registry
from
django.utils.deprecation
import
RemovedInDjango20Warning
from
django.utils.safestring
import
mark_safe
...
...
@@ -41,6 +42,7 @@ class ChainingTests(SimpleTestCase):
# Using a filter that forces safeness does not lead to double-escaping
@setup
({
'chaining05'
:
'{{ a|escape|capfirst }}'
})
def
test_chaining05
(
self
):
reset_warning_registry
()
with
warnings
.
catch_warnings
(
record
=
True
)
as
warns
:
warnings
.
simplefilter
(
'always'
)
output
=
self
.
engine
.
render_to_string
(
'chaining05'
,
{
'a'
:
'a < b'
})
...
...
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