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
caa006f3
Kaydet (Commit)
caa006f3
authored
Tem 22, 2016
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
Tem 22, 2016
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed unnecessary coerce to list in forms_tests.
üst
bc1e9e82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_widgets.py
tests/forms_tests/tests/test_widgets.py
+3
-3
No files found.
tests/forms_tests/tests/test_widgets.py
Dosyayı görüntüle @
caa006f3
...
...
@@ -130,7 +130,7 @@ beatle J R Ringo False""")
"
\n
"
.
join
(
c
.
tag
()
for
c
in
CheckboxSelectMultiple
(
attrs
=
{
'id'
:
'abc'
},
choices
=
zip
(
list
(
'abc'
),
list
(
'ABC'
)
)
choices
=
zip
(
'abc'
,
'ABC'
)
)
.
subwidgets
(
'letters'
,
list
(
'ac'
))
),
"""<input checked="checked" type="checkbox" name="letters" value="a" id="abc_0" />
...
...
@@ -140,7 +140,7 @@ beatle J R Ringo False""")
# Each subwidget tag does not get an ID if the widget does not have an ID specified
self
.
assertHTMLEqual
(
"
\n
"
.
join
(
c
.
tag
()
for
c
in
CheckboxSelectMultiple
(
choices
=
zip
(
list
(
'abc'
),
list
(
'ABC'
)
),
choices
=
zip
(
'abc'
,
'ABC'
),
)
.
subwidgets
(
'letters'
,
list
(
'ac'
))),
"""<input checked="checked" type="checkbox" name="letters" value="a" />
<input type="checkbox" name="letters" value="b" />
...
...
@@ -152,7 +152,7 @@ beatle J R Ringo False""")
'<input type="checkbox" name="letters" value="
%
s" id="
%
s" />'
%
(
c
.
choice_value
,
c
.
id_for_label
)
for
c
in
CheckboxSelectMultiple
(
attrs
=
{
'id'
:
'abc'
},
choices
=
zip
(
list
(
'abc'
),
list
(
'ABC'
)
),
choices
=
zip
(
'abc'
,
'ABC'
),
)
.
subwidgets
(
'letters'
,
[])
),
"""<input type="checkbox" name="letters" value="a" id="abc_0" />
...
...
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