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
9762ba26
Kaydet (Commit)
9762ba26
authored
May 11, 2014
tarafından
Ramiro Morales
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Unneeded, Python 3 incompatible code in
a75324c6
tests.
üst
a75324c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests.py
tests/fixtures_regress/tests.py
+3
-3
No files found.
tests/fixtures_regress/tests.py
Dosyayı görüntüle @
9762ba26
...
...
@@ -768,8 +768,8 @@ class M2MNaturalKeyFixtureTests(TestCase):
# The dependency sorting should not result in an error, and the
# through model should have dependencies to the other models and as
# such come last in the list.
self
.
assertEqual
(
sorted
(
sorted_deps
[:
3
]),
sorted
([
A
,
B
,
C
])
)
self
.
assertEqual
(
sorted
(
sorted_deps
[
3
:]),
sorted
([
AtoB
,
BtoC
,
CtoA
])
)
self
.
assertEqual
(
sorted
_deps
[:
3
],
[
A
,
B
,
C
]
)
self
.
assertEqual
(
sorted
_deps
[
3
:],
[
AtoB
,
BtoC
,
CtoA
]
)
def
test_dependency_sorting_m2m_complex_circular_2
(
self
):
"""
...
...
@@ -789,7 +789,7 @@ class M2MNaturalKeyFixtureTests(TestCase):
self
.
fail
(
"Serialization dependency solving algorithm isn't "
"capable of handling circular M2M setups with "
"intermediate models plus natural key dependency hints."
)
self
.
assertEqual
(
sorted
(
sorted_deps
[:
2
]),
sorted
([
M2MComplexCircular2A
,
M2MComplexCircular2B
])
)
self
.
assertEqual
(
sorted
_deps
[:
2
],
[
M2MComplexCircular2A
,
M2MComplexCircular2B
]
)
self
.
assertEqual
(
sorted_deps
[
2
:],
[
M2MCircular2ThroughAB
])
def
test_dump_and_load_m2m_simple
(
self
):
...
...
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