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
7fce7f51
Kaydet (Commit)
7fce7f51
authored
Eyl 17, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Skipped some broken tests on Oracle GIS; refs #23504.
üst
fc2b8ddc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
test_regress.py
django/contrib/gis/tests/geoapp/test_regress.py
+5
-0
tests.py
django/contrib/gis/tests/relatedapp/tests.py
+4
-0
No files found.
django/contrib/gis/tests/geoapp/test_regress.py
Dosyayı görüntüle @
7fce7f51
...
...
@@ -5,6 +5,7 @@ from datetime import datetime
from
django.contrib.gis.geos
import
HAS_GEOS
from
django.contrib.gis.shortcuts
import
render_to_kmz
from
django.contrib.gis.tests.utils
import
no_oracle
from
django.db.models
import
Count
,
Min
from
django.test
import
TestCase
,
skipUnlessDBFeature
...
...
@@ -65,6 +66,10 @@ class GeoRegressionTests(TestCase):
# .count() should not throw TypeError in __eq__
self
.
assertEqual
(
cities_within_state
.
count
(),
1
)
# TODO: fix on Oracle -- get the following error because the SQL is ordered
# by a geometry object, which Oracle apparently doesn't like:
# ORA-22901: cannot compare nested table or VARRAY or LOB attributes of an object type
@no_oracle
def
test_defer_or_only_with_annotate
(
self
):
"Regression for #16409. Make sure defer() and only() work with annotate()"
self
.
assertIsInstance
(
list
(
City
.
objects
.
annotate
(
Count
(
'point'
))
.
defer
(
'name'
)),
list
)
...
...
django/contrib/gis/tests/relatedapp/tests.py
Dosyayı görüntüle @
7fce7f51
...
...
@@ -263,6 +263,10 @@ class RelatedGeoModelTest(TestCase):
self
.
assertEqual
(
1
,
len
(
vqs
))
self
.
assertEqual
(
3
,
vqs
[
0
][
'num_books'
])
# TODO: fix on Oracle -- get the following error because the SQL is ordered
# by a geometry object, which Oracle apparently doesn't like:
# ORA-22901: cannot compare nested table or VARRAY or LOB attributes of an object type
@no_oracle
def
test13c_count
(
self
):
"Testing `Count` aggregate with `.values()`. See #15305."
qs
=
Location
.
objects
.
filter
(
id
=
5
)
.
annotate
(
num_cities
=
Count
(
'city'
))
.
values
(
'id'
,
'point'
,
'num_cities'
)
...
...
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