Skip to content

Commit

Permalink
Minor cleanups in HANA tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mrylov committed Dec 7, 2020
1 parent 1f64e1f commit b172ae0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/src/python/test_provider_hana.py
Expand Up @@ -252,7 +252,7 @@ def testBinaryType(self):
'"id" INTEGER NOT NULL PRIMARY KEY,' \
'"blob" VARBINARY(114))'
insert_sql = 'INSERT INTO "qgis_test"."binary_type" ("id", "blob") VALUES (?, ?)'
insert_args = [[1, base64.b64encode(b'binvalue')], [2, None]]
insert_args = [[1, QByteArray(b'YmludmFsdWU=')], [2, None]]
self.prepareTestTable('binary_type', create_sql, insert_sql, insert_args)

vl = self.createVectorLayer('table="qgis_test"."binary_type" sql=', 'testbinary')
Expand All @@ -271,7 +271,7 @@ def testBinaryTypeEdit(self):
'"id" INTEGER NOT NULL PRIMARY KEY,' \
'"blob" VARBINARY(1000))'
insert_sql = 'INSERT INTO "qgis_test"."binary_type_edit" ("id", "blob") VALUES (?, ?)'
insert_args = [[1, base64.b64encode(b'bbb')]]
insert_args = [[1, QByteArray(b'YmJi')]]
self.prepareTestTable('binary_type_edit', create_sql, insert_sql, insert_args)

vl = self.createVectorLayer('key=\'id\' table="qgis_test"."binary_type_edit" sql=', 'testbinaryedit')
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_qgsproviderconnection_hana.py
Expand Up @@ -110,7 +110,7 @@ def testTrueFalse(self):
self.assertEqual(conn.executeSql('SELECT TRUE FROM DUMMY'), [[True]])

def testPrimaryKeys(self):
"""Test that PKs"""
"""Test returned primary keys"""

md = self.createProviderMetadata()
conn = md.createConnection(self.uri, {})
Expand Down

0 comments on commit b172ae0

Please sign in to comment.