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
1992d55e
Kaydet (Commit)
1992d55e
authored
May 25, 2014
tarafından
Florian Apolloner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Fixed a few warnings in the testsuite.
Backport of
536ebaa0
from master.
üst
0c685ab6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
test_forms.py
tests/forms_tests/tests/test_forms.py
+1
-1
test_static.py
tests/view_tests/tests/test_static.py
+1
-0
No files found.
tests/forms_tests/tests/test_forms.py
Dosyayı görüntüle @
1992d55e
...
...
@@ -59,7 +59,7 @@ class FormsTestCase(TestCase):
self
.
assertHTMLEqual
(
str
(
p
[
'birthday'
]),
'<input type="text" name="birthday" value="1940-10-9" id="id_birthday" />'
)
nonexistenterror
=
"Key u?'nonexistentfield' not found in 'Person'"
with
self
.
assertRaisesRegex
p
(
KeyError
,
nonexistenterror
):
with
self
.
assertRaisesRegex
(
KeyError
,
nonexistenterror
):
p
[
'nonexistentfield'
]
self
.
fail
(
'Attempts to access non-existent fields should fail.'
)
...
...
tests/view_tests/tests/test_static.py
Dosyayı görüntüle @
1992d55e
...
...
@@ -36,6 +36,7 @@ class StaticTests(SimpleTestCase):
def
test_unknown_mime_type
(
self
):
response
=
self
.
client
.
get
(
'/
%
s/file.unknown'
%
self
.
prefix
)
self
.
assertEqual
(
'application/octet-stream'
,
response
[
'Content-Type'
])
response
.
close
()
def
test_copes_with_empty_path_component
(
self
):
file_name
=
'file.txt'
...
...
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