File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
src/django_elasticsearch_dsl_drf/tests Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ Main features and highlights
4545 is implemented.
4646- :doc: `Geo-spatial filtering filter backend <advanced_usage_examples >` (the
4747 following filters implemented: ``geo_distance ``).
48+ - :doc: `Geo-spatial ordering filter backend <advanced_usage_examples >` (the
49+ following filters implemented: ``geo_distance ``).
4850- :doc: `Faceted search filter backend <advanced_usage_examples >`.
4951- :doc: `Suggester filter backend <advanced_usage_examples >`.
5052- :doc: `Pagination (Page number and limit/offset pagination) <advanced_usage_examples >`.
Original file line number Diff line number Diff line change 11"""
2- Test geo-spatial filtering backend.
2+ Test geo-spatial ordering filter backend.
33"""
44
55from __future__ import absolute_import
2828__copyright__ = '2017 Artur Barseghyan'
2929__license__ = 'GPL 2.0/LGPL 2.1'
3030__all__ = (
31- 'TestFilteringGeoSpatial ' ,
31+ 'TestOrderingGeoSpatial ' ,
3232)
3333
3434
3535@pytest .mark .django_db
3636class TestOrderingGeoSpatial (BaseRestFrameworkTestCase ):
37- """Test filtering geo-spatial."""
37+ """Test ordering geo-spatial."""
3838
3939 pytestmark = pytest .mark .django_db
4040
@@ -66,12 +66,12 @@ def setUpClass(cls):
6666
6767 @pytest .mark .webtest
6868 def test_field_filter_geo_distance (self ):
69- """Field filter term .
69+ """Field filter geo_distance .
7070
7171 Example:
7272
7373 http://localhost:8000
74- /api/publisher/?geo_distance_ordering=location|48.8549 |2.3000 |km|plane
74+ /api/publisher/?geo_distance_ordering=location|48.85 |2.30 |km|plane
7575 """
7676 self .authenticate ()
7777
You can’t perform that action at this time.
0 commit comments