@@ -110,7 +110,7 @@ def setUpClass(cls):
110110"supportsAdvancedQueries":true,"supportedQueryFormats":"JSON, AMF",
111111"ownershipBasedAccessControlForFeatures":{"allowOthersToQuery":true},"useStandardizedQueries":true}""" .encode ('UTF-8' ))
112112
113- with open (sanitize (endpoint , '/query?f=json_where=OBJECTID=OBJECTID_returnIdsOnly =true' ), 'wb' ) as f :
113+ with open (sanitize (endpoint , '/query?f=json_where=1=1&returnIdsOnly =true' ), 'wb' ) as f :
114114 f .write ("""
115115{
116116 "objectIdFieldName": "OBJECTID",
@@ -364,7 +364,7 @@ def setUpClass(cls):
364364 ]
365365 }""" .encode ('UTF-8' ))
366366
367- with open (sanitize (endpoint , '/query?f=json&where=OBJECTID=OBJECTID &returnIdsOnly=true&geometry=-70.000000,67.000000,-60.000000,80.000000&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelEnvelopeIntersects' ), 'wb' ) as f :
367+ with open (sanitize (endpoint , '/query?f=json&where=1=1 &returnIdsOnly=true&geometry=-70.000000,67.000000,-60.000000,80.000000&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelEnvelopeIntersects' ), 'wb' ) as f :
368368 f .write ("""
369369 {
370370 "objectIdFieldName": "OBJECTID",
@@ -375,7 +375,7 @@ def setUpClass(cls):
375375 }
376376 """ .encode ('UTF-8' ))
377377
378- with open (sanitize (endpoint , '/query?f=json&where=OBJECTID=OBJECTID &returnIdsOnly=true&geometry=-73.000000,70.000000,-63.000000,80.000000&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelEnvelopeIntersects' ), 'wb' ) as f :
378+ with open (sanitize (endpoint , '/query?f=json&where==1= &returnIdsOnly=true&geometry=-73.000000,70.000000,-63.000000,80.000000&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelEnvelopeIntersects' ), 'wb' ) as f :
379379 f .write ("""
380380 {
381381 "objectIdFieldName": "OBJECTID",
@@ -386,7 +386,7 @@ def setUpClass(cls):
386386 }
387387 """ .encode ('UTF-8' ))
388388
389- with open (sanitize (endpoint , '/query?f=json&where=OBJECTID=OBJECTID &returnIdsOnly=true&geometry=-68.721119,68.177676,-64.678700,79.123755&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelEnvelopeIntersects' ), 'wb' ) as f :
389+ with open (sanitize (endpoint , '/query?f=json&where=1=1 &returnIdsOnly=true&geometry=-68.721119,68.177676,-64.678700,79.123755&geometryType=esriGeometryEnvelope&spatialRel=esriSpatialRelEnvelopeIntersects' ), 'wb' ) as f :
390390 f .write ("""
391391 {
392392 "objectIdFieldName": "OBJECTID",
@@ -449,7 +449,7 @@ def testObjectIdDifferentName(self):
449449 "ownershipBasedAccessControlForFeatures":{"allowOthersToQuery":true},"useStandardizedQueries":true}""" .encode (
450450 'UTF-8' ))
451451
452- with open (sanitize (endpoint , '/query?f=json_where=OBJECTID1=OBJECTID1_returnIdsOnly =true' ), 'wb' ) as f :
452+ with open (sanitize (endpoint , '/query?f=json_where=1=1&returnIdsOnly =true' ), 'wb' ) as f :
453453 f .write ("""
454454 {
455455 "objectIdFieldName": "OBJECTID1",
@@ -522,7 +522,7 @@ def testDateTime(self):
522522 "ownershipBasedAccessControlForFeatures":{"allowOthersToQuery":true},"useStandardizedQueries":true}""" .encode (
523523 'UTF-8' ))
524524
525- with open (sanitize (endpoint , '/query?f=json_where=OBJECTID=OBJECTID_returnIdsOnly =true' ), 'wb' ) as f :
525+ with open (sanitize (endpoint , '/query?f=json_where=1=1&returnIdsOnly =true' ), 'wb' ) as f :
526526 f .write ("""
527527 {
528528 "objectIdFieldName": "OBJECTID",
@@ -605,7 +605,7 @@ def testMetadata(self):
605605 "ownershipBasedAccessControlForFeatures":{"allowOthersToQuery":true},"useStandardizedQueries":true}""" .encode (
606606 'UTF-8' ))
607607
608- with open (sanitize (endpoint , '/query?f=json_where=OBJECTID=OBJECTID_returnIdsOnly =true' ), 'wb' ) as f :
608+ with open (sanitize (endpoint , '/query?f=json_where=1=1&returnIdsOnly =true' ), 'wb' ) as f :
609609 f .write ("""
610610 {
611611 "objectIdFieldName": "OBJECTID",
@@ -722,7 +722,7 @@ def testRenderer(self):
722722 "ownershipBasedAccessControlForFeatures":{"allowOthersToQuery":true},"useStandardizedQueries":true}""" .encode (
723723 'UTF-8' ))
724724
725- with open (sanitize (endpoint , '/query?f=json_where=OBJECTID=OBJECTID_returnIdsOnly =true' ), 'wb' ) as f :
725+ with open (sanitize (endpoint , '/query?f=json_where=1=1&returnIdsOnly =true' ), 'wb' ) as f :
726726 f .write ("""
727727 {
728728 "objectIdFieldName": "OBJECTID",
@@ -774,7 +774,7 @@ def testBadMultiPoints(self):
774774 "ownershipBasedAccessControlForFeatures":{"allowOthersToQuery":true},"useStandardizedQueries":true}""" .encode (
775775 'UTF-8' ))
776776
777- with open (sanitize (endpoint , '/query?f=json_where=OBJECTID=OBJECTID_returnIdsOnly =true' ), 'wb' ) as f :
777+ with open (sanitize (endpoint , '/query?f=json_where=1=1&returnIdsOnly =true' ), 'wb' ) as f :
778778 f .write ("""
779779 {
780780 "objectIdFieldName": "OBJECTID",
0 commit comments