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
2f8f2ad1
Kaydet (Commit)
2f8f2ad1
authored
May 09, 2013
tarafından
Luke Plant
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed some failing tests missed in
1556b1c3
üst
1556b1c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
tests.py
tests/modeladmin/tests.py
+0
-42
No files found.
tests/modeladmin/tests.py
Dosyayı görüntüle @
2f8f2ad1
...
@@ -616,17 +616,6 @@ class ValidationTests(unittest.TestCase):
...
@@ -616,17 +616,6 @@ class ValidationTests(unittest.TestCase):
ValidationTestModel
,
ValidationTestModel
,
)
)
class
ValidationTestModelAdmin
(
ModelAdmin
):
fieldsets
=
((
"General"
,
{
"fields"
:
(
"non_existent_field"
,)}),)
six
.
assertRaisesRegex
(
self
,
ImproperlyConfigured
,
"'ValidationTestModelAdmin.fieldsets
\
[0
\
]
\
[1
\
]
\
['fields'
\
]' refers to field 'non_existent_field' that is missing from the form."
,
validate
,
ValidationTestModelAdmin
,
ValidationTestModel
,
)
class
ValidationTestModelAdmin
(
ModelAdmin
):
class
ValidationTestModelAdmin
(
ModelAdmin
):
fieldsets
=
((
"General"
,
{
"fields"
:
(
"name"
,)}),)
fieldsets
=
((
"General"
,
{
"fields"
:
(
"name"
,)}),)
...
@@ -684,22 +673,6 @@ class ValidationTests(unittest.TestCase):
...
@@ -684,22 +673,6 @@ class ValidationTests(unittest.TestCase):
def
test_fieldsets_with_custom_form_validation
(
self
):
def
test_fieldsets_with_custom_form_validation
(
self
):
class
BandAdmin
(
ModelAdmin
):
fieldsets
=
(
(
'Band'
,
{
'fields'
:
(
'non_existent_field'
,)
}),
)
six
.
assertRaisesRegex
(
self
,
ImproperlyConfigured
,
"'BandAdmin.fieldsets
\
[0
\
]
\
[1
\
]
\
['fields'
\
]' refers to field 'non_existent_field' that is missing from the form."
,
validate
,
BandAdmin
,
Band
,
)
class
BandAdmin
(
ModelAdmin
):
class
BandAdmin
(
ModelAdmin
):
fieldsets
=
(
fieldsets
=
(
(
'Band'
,
{
(
'Band'
,
{
...
@@ -1371,21 +1344,6 @@ class ValidationTests(unittest.TestCase):
...
@@ -1371,21 +1344,6 @@ class ValidationTests(unittest.TestCase):
ValidationTestModel
,
ValidationTestModel
,
)
)
class
ValidationTestInline
(
TabularInline
):
model
=
ValidationTestInlineModel
fields
=
(
"non_existent_field"
,)
class
ValidationTestModelAdmin
(
ModelAdmin
):
inlines
=
[
ValidationTestInline
]
six
.
assertRaisesRegex
(
self
,
ImproperlyConfigured
,
"'ValidationTestInline.fields' refers to field 'non_existent_field' that is missing from the form."
,
validate
,
ValidationTestModelAdmin
,
ValidationTestModel
,
)
def
test_fk_name_validation
(
self
):
def
test_fk_name_validation
(
self
):
class
ValidationTestInline
(
TabularInline
):
class
ValidationTestInline
(
TabularInline
):
...
...
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