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
d69ecf92
Kaydet (Commit)
d69ecf92
authored
Ock 17, 2015
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Complemented test about non-supported aggregation exception
üst
d60b96d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
tests.py
django/contrib/gis/tests/geoapp/tests.py
+9
-2
No files found.
django/contrib/gis/tests/geoapp/tests.py
Dosyayı görüntüle @
d69ecf92
...
@@ -630,14 +630,21 @@ class GeoQuerySetTest(TestCase):
...
@@ -630,14 +630,21 @@ class GeoQuerySetTest(TestCase):
for
ptown
in
[
ptown1
,
ptown2
]:
for
ptown
in
[
ptown1
,
ptown2
]:
self
.
assertEqual
(
'<Point><coordinates>-104.609252,38.255001</coordinates></Point>'
,
ptown
.
kml
)
self
.
assertEqual
(
'<Point><coordinates>-104.609252,38.255001</coordinates></Point>'
,
ptown
.
kml
)
# Only PostGIS has support for the MakeLine aggregate.
@skipUnlessDBFeature
(
"supports_make_line_aggr"
)
@ignore_warnings
(
category
=
RemovedInDjango20Warning
)
@ignore_warnings
(
category
=
RemovedInDjango20Warning
)
def
test_make_line
(
self
):
def
test_make_line
(
self
):
"""
"""
Testing the (deprecated) `make_line` GeoQuerySet method and the MakeLine
Testing the (deprecated) `make_line` GeoQuerySet method and the MakeLine
aggregate.
aggregate.
"""
"""
if
not
connection
.
features
.
supports_make_line_aggr
:
# Only PostGIS has support for the MakeLine aggregate. For other
# backends, test that NotImplementedError is raised
self
.
assertRaises
(
NotImplementedError
,
City
.
objects
.
all
()
.
aggregate
,
MakeLine
(
'point'
)
)
return
# Ensuring that a `TypeError` is raised on models without PointFields.
# Ensuring that a `TypeError` is raised on models without PointFields.
self
.
assertRaises
(
TypeError
,
State
.
objects
.
make_line
)
self
.
assertRaises
(
TypeError
,
State
.
objects
.
make_line
)
self
.
assertRaises
(
TypeError
,
Country
.
objects
.
make_line
)
self
.
assertRaises
(
TypeError
,
Country
.
objects
.
make_line
)
...
...
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