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
2a7c59cd
Kaydet (Commit)
2a7c59cd
authored
Haz 04, 2015
tarafından
Andriy Sokolovskiy
Kaydeden (comit)
Tim Graham
Haz 06, 2015
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Added missing tests for transforms usage with subquery for PostgreSQL fields
üst
08232ef8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
test_array.py
tests/postgres_tests/test_array.py
+8
-0
test_hstore.py
tests/postgres_tests/test_hstore.py
+6
-0
test_json.py
tests/postgres_tests/test_json.py
+6
-0
No files found.
tests/postgres_tests/test_array.py
Dosyayı görüntüle @
2a7c59cd
...
@@ -228,6 +228,14 @@ class TestQuerying(PostgreSQLTestCase):
...
@@ -228,6 +228,14 @@ class TestQuerying(PostgreSQLTestCase):
[
instance
]
[
instance
]
)
)
def
test_usage_in_subquery
(
self
):
self
.
assertSequenceEqual
(
NullableIntegerArrayModel
.
objects
.
filter
(
id__in
=
NullableIntegerArrayModel
.
objects
.
filter
(
field__len
=
3
)
),
[
self
.
objs
[
3
]]
)
class
TestChecks
(
PostgreSQLTestCase
):
class
TestChecks
(
PostgreSQLTestCase
):
...
...
tests/postgres_tests/test_hstore.py
Dosyayı görüntüle @
2a7c59cd
...
@@ -132,6 +132,12 @@ class TestQuerying(PostgreSQLTestCase):
...
@@ -132,6 +132,12 @@ class TestQuerying(PostgreSQLTestCase):
self
.
objs
[:
2
]
self
.
objs
[:
2
]
)
)
def
test_usage_in_subquery
(
self
):
self
.
assertSequenceEqual
(
HStoreModel
.
objects
.
filter
(
id__in
=
HStoreModel
.
objects
.
filter
(
field__a
=
'b'
)),
self
.
objs
[:
2
]
)
class
TestSerialization
(
PostgreSQLTestCase
):
class
TestSerialization
(
PostgreSQLTestCase
):
test_data
=
'[{"fields": {"field": "{
\\
"a
\\
":
\\
"b
\\
"}"}, "model": "postgres_tests.hstoremodel", "pk": null}]'
test_data
=
'[{"fields": {"field": "{
\\
"a
\\
":
\\
"b
\\
"}"}, "model": "postgres_tests.hstoremodel", "pk": null}]'
...
...
tests/postgres_tests/test_json.py
Dosyayı görüntüle @
2a7c59cd
...
@@ -204,6 +204,12 @@ class TestQuerying(TestCase):
...
@@ -204,6 +204,12 @@ class TestQuerying(TestCase):
[
self
.
objs
[
7
],
self
.
objs
[
8
]]
[
self
.
objs
[
7
],
self
.
objs
[
8
]]
)
)
def
test_usage_in_subquery
(
self
):
self
.
assertSequenceEqual
(
JSONModel
.
objects
.
filter
(
id__in
=
JSONModel
.
objects
.
filter
(
field__c
=
1
)),
self
.
objs
[
7
:
9
]
)
@skipUnlessPG94
@skipUnlessPG94
class
TestSerialization
(
TestCase
):
class
TestSerialization
(
TestCase
):
...
...
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