Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kasium committed Oct 30, 2023
1 parent c68aa33 commit 5516c41
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
run: "pre-commit run --all"
ci-test:
concurrency: hana-tests
if: ${{ github.event_name == 'pull_request' }}
strategy:
fail-fast: false
max-parallel: 1
Expand Down
4 changes: 0 additions & 4 deletions test/test_hana_connect_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class HANAConnectUrlWithTenantTest(sqlalchemy.testing.fixtures.TestBase):
@sqlalchemy.testing.only_on("hana+hdbcli")
def test_hdbcli_tenant_url_default_port(self):
"""If the URL includes a tenant database, the dialect pass the adjusted values to hdbcli.
Expand All @@ -23,7 +22,6 @@ def test_hdbcli_tenant_url_default_port(self):
assert result_kwargs["password"] == "secret-password"
assert result_kwargs["databaseName"] == "TENANT_NAME"

@sqlalchemy.testing.only_on("hana+hdbcli")
def test_hdbcli_tenant_url_changed_port(self):
"""If the URL includes a tenant database, the dialect pass the adjusted values to hdbcli.
Expand All @@ -41,7 +39,6 @@ def test_hdbcli_tenant_url_changed_port(self):


class HANAConnectUrlWithHDBUserStoreTest(sqlalchemy.testing.fixtures.TestBase):
@sqlalchemy.testing.only_on("hana+hdbcli")
def test_parsing_userkey_hdbcli(self):
"""With HDBCLI, the user may reference to a local HDBUserStore key which holds
the connection details. SQLAlchemy-HANA should only pass the userkey name to
Expand All @@ -55,7 +52,6 @@ def test_parsing_userkey_hdbcli(self):


class HANAConnectUrlParsing(sqlalchemy.testing.fixtures.TestBase):
@sqlalchemy.testing.only_on("hana+hdbcli")
def test_pass_uri_query_as_kwargs(self):
"""SQLAlchemy-HANA should passes all URL parameters to hdbcli."""

Expand Down
5 changes: 1 addition & 4 deletions test/test_hana_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,11 @@
from unittest.mock import Mock

import sqlalchemy.testing
from hdbcli.dbapi import Error


class HANAHDBCLIConnectionIsDisconnectedTest(sqlalchemy.testing.fixtures.TestBase):
__only_on__ = "hana+hdbcli"

def test_detection_by_error_code(self):
from hdbcli.dbapi import Error

dialect = sqlalchemy.testing.db.dialect
assert dialect.is_disconnect(Error(-10709, "Connect failed"), None, None)

Expand Down
2 changes: 0 additions & 2 deletions test/test_hana_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
class HANACompileTest(
sqlalchemy.testing.fixtures.TestBase, sqlalchemy.testing.AssertsCompiledSQL
):
__only_on__ = "hana"

def test_sql_with_for_update(self):
table1 = table("mytable", column("myid"), column("name"), column("description"))

Expand Down
2 changes: 0 additions & 2 deletions test/test_isolation_level.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@


class IsolationLevelTest(sqlalchemy.testing.fixtures.TestBase):
__only_on__ = "hana"

def _default_isolation_level(self):
return "READ COMMITTED"

Expand Down

0 comments on commit 5516c41

Please sign in to comment.