Updated geo tests
This commit is contained in:
parent
1145c72b01
commit
dfe8987aaa
@ -75,6 +75,12 @@ class GeoFieldTest(unittest.TestCase):
|
|||||||
self._test_for_expected_error(Location, coord, expected)
|
self._test_for_expected_error(Location, coord, expected)
|
||||||
|
|
||||||
Location(loc=[1, 2]).validate()
|
Location(loc=[1, 2]).validate()
|
||||||
|
Location(loc={
|
||||||
|
"type": "Point",
|
||||||
|
"coordinates": [
|
||||||
|
81.4471435546875,
|
||||||
|
23.61432859499169
|
||||||
|
]}).validate()
|
||||||
|
|
||||||
def test_linestring_validation(self):
|
def test_linestring_validation(self):
|
||||||
class Location(Document):
|
class Location(Document):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user