Skip to content

Commit

Permalink
skips mssql tests if odbc driver not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfix committed Sep 28, 2023
1 parent 032ae5c commit c11e9db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/load/mssql/test_mssql_table_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from dlt.common.utils import uniq_id
from dlt.common.schema import Schema

pytest.importorskip("dlt.destinations.mssql.mssql", reason="MSSQL ODBC driver not installed")

from dlt.destinations.mssql.mssql import MsSqlClient
from dlt.destinations.mssql.configuration import MsSqlClientConfiguration, MsSqlCredentials

Expand Down
1 change: 1 addition & 0 deletions tests/load/pipeline/test_athena.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

from tests.load.pipeline.utils import destinations_configs, DestinationTestConfiguration


@pytest.mark.parametrize("destination_config", destinations_configs(default_sql_configs=True, subset=["athena"]), ids=lambda x: x.name)
def test_athena_destinations(destination_config: DestinationTestConfiguration) -> None:

Expand Down
1 change: 0 additions & 1 deletion tests/load/redshift/test_redshift_table_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from dlt.common.schema import Schema
from dlt.common.configuration import resolve_configuration

from dlt.destinations.exceptions import DestinationSchemaWillNotUpdate
from dlt.destinations.redshift.redshift import RedshiftClient
from dlt.destinations.redshift.configuration import RedshiftClientConfiguration, RedshiftCredentials

Expand Down

0 comments on commit c11e9db

Please sign in to comment.