Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] authored and nyalldawson committed Feb 19, 2025
1 parent f94732a commit 17d535c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/src/python/test_hana_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ def dropOldTestSchemas(conn, schema_prefix):
cursor.close()

for row in rows:
QgsHanaProviderUtils.executeSQL(conn, f'DROP SCHEMA "{row["SCHEMA_NAME"]}" CASCADE')
QgsHanaProviderUtils.executeSQL(
conn, f'DROP SCHEMA "{row["SCHEMA_NAME"]}" CASCADE'
)
except Exception as ex:
print(f"Unable to drop old test schemas. Error: {ex}")
pass
Expand Down
4 changes: 3 additions & 1 deletion tests/src/python/test_qgsproviderconnection_hana.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ def tearDownClass(cls):
super().tearDownClass()

def getUniqueSchemaName(self, name):
return "qgis_test_providerconn_" + QgsHanaProviderUtils.generateSchemaName(self.conn, name)
return "qgis_test_providerconn_" + QgsHanaProviderUtils.generateSchemaName(
self.conn, name
)

def createProviderMetadata(self):
return QgsProviderRegistry.instance().providerMetadata(self.providerKey)
Expand Down

0 comments on commit 17d535c

Please sign in to comment.