We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c25619f commit 3421fffCopy full SHA for 3421fff
tests/queryset/geo.py
@@ -1,4 +1,6 @@
1
import sys
2
+from mongoengine.connection import get_connection
3
+
4
sys.path[0:0] = [""]
5
6
import unittest
@@ -141,7 +143,13 @@ class Event(Document):
141
143
def test_spherical_geospatial_operators(self):
142
144
"""Ensure that spherical geospatial queries are working
145
"""
- raise SkipTest("https://jira.mongodb.org/browse/SERVER-14039")
146
+ # Needs MongoDB > 2.6.4 https://jira.mongodb.org/browse/SERVER-14039
147
+ connection = get_connection()
148
+ info = connection.test.command('buildInfo')
149
+ mongodb_version = tuple([int(i) for i in info['version'].split('.')])
150
+ if mongodb_version < (2, 6, 4):
151
+ raise SkipTest("Need MongoDB version 2.6.4+")
152
153
class Point(Document):
154
location = GeoPointField()
155
0 commit comments