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
d0ad03cd
Kaydet (Commit)
d0ad03cd
authored
May 31, 2018
tarafından
Mariusz Felisiak
Kaydeden (comit)
Tim Graham
May 31, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #29416 -- Fixed GeoExpressionsTests.test_multiple_annotation() on MySQL 5.7+.
Failure introduced in
b6e48f51
.
üst
8a6fcfdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test_expressions.py
tests/gis_tests/geoapp/test_expressions.py
+2
-2
No files found.
tests/gis_tests/geoapp/test_expressions.py
Dosyayı görüntüle @
d0ad03cd
...
...
@@ -3,7 +3,7 @@ from unittest import skipUnless
from
django.contrib.gis.db.models
import
F
,
GeometryField
,
Value
,
functions
from
django.contrib.gis.geos
import
Point
,
Polygon
from
django.db
import
connection
from
django.db.models
import
Count
from
django.db.models
import
Count
,
Min
from
django.test
import
TestCase
,
skipUnlessDBFeature
from
..utils
import
postgis
...
...
@@ -56,7 +56,7 @@ class GeoExpressionsTests(TestCase):
poly
=
Polygon
(((
1
,
1
),
(
1
,
2
),
(
2
,
2
),
(
2
,
1
),
(
1
,
1
))),
)
qs
=
City
.
objects
.
values
(
'name'
)
.
annotate
(
distance
=
functions
.
Distance
(
'multifields__point'
,
multi_field
.
city
.
point
),
distance
=
Min
(
functions
.
Distance
(
'multifields__point'
,
multi_field
.
city
.
point
)
),
)
.
annotate
(
count
=
Count
(
'multifields'
))
self
.
assertTrue
(
qs
.
first
())
...
...
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