Skip to content

Commit

Permalink
Updated get_pyodbc_attrs_before_credentials method
Browse files Browse the repository at this point in the history
  • Loading branch information
prdpsvs committed Dec 1, 2024
1 parent 899a990 commit 4d94cdd
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dbt.adapters.fabric.fabric_connection_manager import (
bool_to_connection_string_arg,
byte_array_to_datetime,
get_pyodbc_attrs_before,
get_pyodbc_attrs_before_credentials,
)
from dbt.adapters.fabric.fabric_credentials import FabricCredentials

Expand Down Expand Up @@ -52,7 +52,7 @@ def test_get_pyodbc_attrs_before_empty_dict_when_service_principal(
"""
When the authentication is set to sql we expect an empty attrs before.
"""
attrs_before = get_pyodbc_attrs_before(credentials)
attrs_before = get_pyodbc_attrs_before_credentials(credentials)
assert attrs_before == {}


Expand All @@ -68,7 +68,7 @@ def test_get_pyodbc_attrs_before_contains_access_token_key_for_cli_authenticatio
"""
credentials.authentication = authentication
with mock.patch(CHECK_OUTPUT, mock.Mock(return_value=mock_cli_access_token)):
attrs_before = get_pyodbc_attrs_before(credentials)
attrs_before = get_pyodbc_attrs_before_credentials(credentials)
assert 1256 in attrs_before.keys()


Expand Down

0 comments on commit 4d94cdd

Please sign in to comment.