Skip to content
Permalink
Browse files

spelling

  • Loading branch information
uclaros committed Feb 9, 2020
1 parent 5bf937f commit 2218bd1203be5a93e20aa471aabb11be24ffda0c
Showing with 5 additions and 5 deletions.
  1. +5 −5 tests/src/python/test_provider_shapefile.py
@@ -713,7 +713,7 @@ def _lessdigits(s):
self.assertNotEqual(_lessdigits(subSet_vl.extent().toString()), unfiltered_extent)

def testMalformedSubsetStrings(self):
"""Test that invalid where clauses allways return false"""
"""Test that invalid where clauses always return false"""

testPath = TEST_DATA_DIR + '/' + 'lines.shp'

@@ -723,12 +723,12 @@ def testMalformedSubsetStrings(self):
self.assertTrue(vl.setSubsetString('"Name" = \'Arterial\''))
self.assertTrue(vl.setSubsetString('select * from lines where "Name" = \'Arterial\''))
self.assertFalse(vl.setSubsetString('this is invalid sql'))
self.assertFalse(vl.setSubsetString('select * from lines where "NonExistantField" = \'someValue\''))
self.assertFalse(vl.setSubsetString('select * from lines where "NonExistentField" = \'someValue\''))
self.assertFalse(vl.setSubsetString('select * from lines where "Name" = \'Arte...'))
self.assertFalse(vl.setSubsetString('select * from lines where "Name" in (\'Arterial\', \'Highway\' '))
self.assertFalse(vl.setSubsetString('select * from NonExistingTable'))
self.assertFalse(vl.setSubsetString('select NonExistingField from lines'))
self.assertFalse(vl.setSubsetString('"NonExistantField" = \'someValue\''))
self.assertFalse(vl.setSubsetString('select * from NonExistentTable'))
self.assertFalse(vl.setSubsetString('select NonExistentField from lines'))
self.assertFalse(vl.setSubsetString('"NonExistentField" = \'someValue\''))
self.assertFalse(vl.setSubsetString('"Name" = \'Arte...'))
self.assertFalse(vl.setSubsetString('"Name" in (\'Arterial\', \'Highway\' '))
self.assertTrue(vl.setSubsetString(''))

0 comments on commit 2218bd1

Please sign in to comment.
You can’t perform that action at this time.