mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[oracle] Some updates to Oracle provider test suite
Now the Oracle provider passes the data provider edit stress/ conformance tests without issue!
This commit is contained in:
parent
bbd335ab1b
commit
c78bdaebca
@ -64,7 +64,7 @@ class TestPyQgsOracleProvider(unittest.TestCase, ProviderTestCase):
|
||||
query.finish()
|
||||
|
||||
# disabled: WIP
|
||||
def disabled_getSource(self):
|
||||
def getSource(self):
|
||||
# create temporary table for edit tests
|
||||
self.execSQLCommand('DROP TABLE "QGIS"."EDIT_DATA"', ignore_errors=True)
|
||||
self.execSQLCommand("""CREATE TABLE QGIS.EDIT_DATA ("pk" INTEGER GENERATED by default ON null as IDENTITY(START WITH 1 INCREMENT BY 1) PRIMARY KEY, "cnt" INTEGER, "name" VARCHAR2(100), "name2" VARCHAR2(100), "num_char" VARCHAR2(100), GEOM SDO_GEOMETRY)""")
|
||||
@ -80,7 +80,7 @@ class TestPyQgsOracleProvider(unittest.TestCase, ProviderTestCase):
|
||||
return vl
|
||||
|
||||
# disabled: WIP
|
||||
def disabled_getEditableLayer(self):
|
||||
def getEditableLayer(self):
|
||||
return self.getSource()
|
||||
|
||||
def enableCompiler(self):
|
||||
@ -147,6 +147,13 @@ class TestPyQgsOracleProvider(unittest.TestCase, ProviderTestCase):
|
||||
])
|
||||
return filters
|
||||
|
||||
def testAddFeatureWrongGeomType(self):
|
||||
"""
|
||||
We override this test for Oracle provider, because Oracle DBs don't care
|
||||
about geometry type constraints
|
||||
"""
|
||||
pass
|
||||
|
||||
# HERE GO THE PROVIDER SPECIFIC TESTS
|
||||
def testDateTimeTypes(self):
|
||||
vl = QgsVectorLayer('%s table="QGIS"."DATE_TIMES" sql=' %
|
||||
|
Loading…
x
Reference in New Issue
Block a user