File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
tests/django_restframework_gis_tests Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 4141 "GeometrySerializerMethodFieldSerializer" ,
4242 "GeometrySerializer" ,
4343 "BoxedLocationGeoFeatureWithBBoxGeoFieldSerializer" ,
44- "OtherSridLocationGeoSerializer"
44+ "OtherSridLocationGeoSerializer" ,
4545]
4646
4747
@@ -62,8 +62,8 @@ class OtherSridLocationGeoSerializer(gis_serializers.GeoFeatureModelSerializer):
6262
6363 class Meta :
6464 model = OtherSridLocation
65- geo_field = ' geometry'
66- fields = ' __all__'
65+ geo_field = " geometry"
66+ fields = " __all__"
6767
6868
6969class PaginatedLocationGeoSerializer (pagination .PageNumberPagination ):
Original file line number Diff line number Diff line change @@ -313,9 +313,9 @@ def test_geojson_false_id_attribute_slug(self):
313313 def test_geojson_srid_transforms_to_wgs84 (self ):
314314 location = OtherSridLocation .objects .create (
315315 name = "other SRID location" ,
316- geometry = ' POINT(625826.2376404074 483198.2074507246)' ,
316+ geometry = " POINT(625826.2376404074 483198.2074507246)" ,
317317 )
318- url = reverse (' api_other_srid_location_details' , args = [location .id ])
318+ url = reverse (" api_other_srid_location_details" , args = [location .id ])
319319 response = self .client .get (url )
320320 expected_coords = (16.372500007573713 , 48.20833306345481 )
321321 expected_coords_bbox = (
@@ -324,7 +324,7 @@ def test_geojson_srid_transforms_to_wgs84(self):
324324 16.372500007573713 ,
325325 48.20833306345481 ,
326326 )
327- self .assertEqual (response .data [' properties' ][ ' name' ], ' other SRID location' )
327+ self .assertEqual (response .data [" properties" ][ " name" ], " other SRID location" )
328328 for received , expected in zip (
329329 response .data ["geometry" ]["coordinates" ],
330330 expected_coords ,
You can’t perform that action at this time.
0 commit comments