Skip to content

Commit

Permalink
reorder lines in UT
Browse files Browse the repository at this point in the history
  • Loading branch information
guenp committed Feb 9, 2024
1 parent 8f28262 commit c84f884
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/functional/plugins/test_motherduck.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,14 @@ def test_incremental(self, project):

def test_motherduck_user_agent(dbt_profile_target):
test_path = dbt_profile_target["path"]
kwargs = {
'read_only': False,
'config': {'custom_user_agent': f'dbt/{__version__}'}
}
creds = DuckDBCredentials(path=test_path)
with mock.patch("dbt.adapters.duckdb.environments.duckdb.connect") as mock_connect:
Environment.initialize_db(creds)
if creds.is_motherduck:
kwargs = {
'read_only': False,
'config': {'custom_user_agent': f'dbt/{__version__}'}
}
mock_connect.assert_called_with(test_path, **kwargs)
else:
mock_connect.assert_called_with(test_path, read_only=False, config = {})

0 comments on commit c84f884

Please sign in to comment.