Skip to content

Commit

Permalink
try more in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Oct 10, 2024
1 parent 4d09cca commit 04ecadf
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def pytest_addoption(parser):
parser.addoption("--profile", action="store", default="databricks_uc_cluster", type=str)
parser.addoption("--profile", action="store", default="databricks_uc_sql_endpoint", type=str)


# Using @pytest.mark.skip_profile('databricks_cluster') uses the 'skip_by_adapter_type'
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/adapter/basic/test_incremental.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def project_config_update(self):
"models": {
"+file_format": "parquet",
"+location_root": f"{location_root}/parquet",
"+include_full_name_in_path": "true",
"+incremental_strategy": "append",
},
}
Expand Down Expand Up @@ -61,6 +62,7 @@ def project_config_update(self):
"models": {
"+file_format": "csv",
"+location_root": f"{location_root}/csv",
"+include_full_name_in_path": "true",
"+incremental_strategy": "append",
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def project_config_update(self):
"models": {
"+file_format": "parquet",
"+location_root": f"{location_root}/parquet_append",
"+include_full_name_in_path": "true",
"+incremental_strategy": "append",
},
}
Expand Down Expand Up @@ -129,6 +130,7 @@ def project_config_update(self):
"models": {
"+file_format": "parquet",
"+location_root": f"{location_root}/parquet_insert_overwrite",
"+include_full_name_in_path": "true",
"+incremental_strategy": "insert_overwrite",
},
}
Expand All @@ -144,6 +146,7 @@ def project_config_update(self):
"models": {
"+file_format": "parquet",
"+location_root": f"{location_root}/parquet_insert_overwrite_partitions",
"+include_full_name_in_path": "true",
"+incremental_strategy": "insert_overwrite",
"+partition_by": "id",
},
Expand Down
2 changes: 2 additions & 0 deletions tests/functional/adapter/persist_docs/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
description: 'A seed description'
config:
location_root: '{{ env_var("DBT_DATABRICKS_LOCATION_ROOT") }}'
include_full_name_in_path: true
persist_docs:
relation: True
columns: True
Expand All @@ -22,6 +23,7 @@
description: 'A seed description'
config:
location_root: '/mnt/dbt_databricks/seeds'
include_full_name_in_path: true
persist_docs:
relation: True
columns: True
Expand Down

0 comments on commit 04ecadf

Please sign in to comment.