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
01966bb2
Kaydet (Commit)
01966bb2
authored
Agu 20, 2015
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed typo in tests/migrations/test_autodetector.py.
üst
867d287b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
test_autodetector.py
tests/migrations/test_autodetector.py
+6
-6
No files found.
tests/migrations/test_autodetector.py
Dosyayı görüntüle @
01966bb2
...
@@ -1003,7 +1003,7 @@ class AutodetectorTests(TestCase):
...
@@ -1003,7 +1003,7 @@ class AutodetectorTests(TestCase):
"""
"""
# Explicitly testing for not specified, since this is the case after
# Explicitly testing for not specified, since this is the case after
# a CreateModel operation w/o any definition on the original model
# a CreateModel operation w/o any definition on the original model
model_state_not_secified
=
ModelState
(
"a"
,
"model"
,
[(
"id"
,
models
.
AutoField
(
primary_key
=
True
))])
model_state_not_s
p
ecified
=
ModelState
(
"a"
,
"model"
,
[(
"id"
,
models
.
AutoField
(
primary_key
=
True
))])
# Explicitly testing for None, since this was the issue in #23452 after
# Explicitly testing for None, since this was the issue in #23452 after
# a AlterFooTogether operation with e.g. () as value
# a AlterFooTogether operation with e.g. () as value
model_state_none
=
ModelState
(
"a"
,
"model"
,
[
model_state_none
=
ModelState
(
"a"
,
"model"
,
[
...
@@ -1031,13 +1031,13 @@ class AutodetectorTests(TestCase):
...
@@ -1031,13 +1031,13 @@ class AutodetectorTests(TestCase):
self
.
fail
(
'Created operation(s)
%
s from
%
s'
%
(
ops
,
msg
))
self
.
fail
(
'Created operation(s)
%
s from
%
s'
%
(
ops
,
msg
))
tests
=
(
tests
=
(
(
model_state_not_s
ecified
,
model_state_not_s
ecified
,
'"not specified" to "not specified"'
),
(
model_state_not_s
pecified
,
model_state_not_sp
ecified
,
'"not specified" to "not specified"'
),
(
model_state_not_secified
,
model_state_none
,
'"not specified" to "None"'
),
(
model_state_not_s
p
ecified
,
model_state_none
,
'"not specified" to "None"'
),
(
model_state_not_secified
,
model_state_empty
,
'"not specified" to "empty"'
),
(
model_state_not_s
p
ecified
,
model_state_empty
,
'"not specified" to "empty"'
),
(
model_state_none
,
model_state_not_secified
,
'"None" to "not specified"'
),
(
model_state_none
,
model_state_not_s
p
ecified
,
'"None" to "not specified"'
),
(
model_state_none
,
model_state_none
,
'"None" to "None"'
),
(
model_state_none
,
model_state_none
,
'"None" to "None"'
),
(
model_state_none
,
model_state_empty
,
'"None" to "empty"'
),
(
model_state_none
,
model_state_empty
,
'"None" to "empty"'
),
(
model_state_empty
,
model_state_not_secified
,
'"empty" to "not specified"'
),
(
model_state_empty
,
model_state_not_s
p
ecified
,
'"empty" to "not specified"'
),
(
model_state_empty
,
model_state_none
,
'"empty" to "None"'
),
(
model_state_empty
,
model_state_none
,
'"empty" to "None"'
),
(
model_state_empty
,
model_state_empty
,
'"empty" to "empty"'
),
(
model_state_empty
,
model_state_empty
,
'"empty" to "empty"'
),
)
)
...
...
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