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
309c10c2
Kaydet (Commit)
309c10c2
authored
Nis 26, 2017
tarafından
Tim Graham
Kaydeden (comit)
GitHub
Nis 26, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #20094 -- Removed obsolete tests/utils_tests/test_itercompat.py
The is_iterator() function was removed in
2456ffa4
.
üst
8f50ca11
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
19 deletions
+0
-19
models.py
tests/utils_tests/models.py
+0
-8
test_itercompat.py
tests/utils_tests/test_itercompat.py
+0
-11
No files found.
tests/utils_tests/models.py
Dosyayı görüntüle @
309c10c2
...
...
@@ -4,14 +4,6 @@ from django.db import models
class
Category
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
def
next
(
self
):
return
self
class
Thing
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
category
=
models
.
ForeignKey
(
Category
,
models
.
CASCADE
)
class
CategoryInfo
(
models
.
Model
):
category
=
models
.
OneToOneField
(
Category
,
models
.
CASCADE
)
tests/utils_tests/test_itercompat.py
deleted
100644 → 0
Dosyayı görüntüle @
8f50ca11
from
django.test
import
TestCase
from
.models
import
Category
,
Thing
class
TestIsIterator
(
TestCase
):
def
test_regression
(
self
):
"""This failed on Django 1.5/Py2.6 because category has a next method."""
category
=
Category
.
objects
.
create
(
name
=
'category'
)
Thing
.
objects
.
create
(
category
=
category
)
Thing
.
objects
.
filter
(
category
=
category
)
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