Skip to content

Commit

Permalink
need to keep runs separate
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Sep 27, 2024
1 parent c395c0a commit e680e9e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
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_sql_endpoint", type=str)
parser.addoption("--profile", action="store", default="databricks_uc_cluster", type=str)


# Using @pytest.mark.skip_profile('databricks_cluster') uses the 'skip_by_adapter_type'
Expand Down
3 changes: 2 additions & 1 deletion tests/functional/adapter/python_model/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def model(dbt, spark):
config:
marterialized: table
tags: ["python"]
location_root: '{{ env_var("DBT_DATABRICKS_LOCATION_ROOT") }}'
create_notebook: true
location_root: "{root}/{schema}"
columns:
- name: date
tests:
Expand Down
9 changes: 9 additions & 0 deletions tests/functional/adapter/python_model/test_python_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ def project_config_update(self):
}

def test_expected_handling_of_complex_config(self, project):
unformatted_schema_yml = util.read_file("models", "schema.yml")
util.write_file(
unformatted_schema_yml.replace(
"root", os.environ["DBT_DATABRICKS_LOCATION_ROOT"]
).replace("{schema}", project.test_schema),
"models",
"schema.yml",
)

util.run_dbt(["seed"])
util.run_dbt(["build", "-s", "complex_config"])
util.run_dbt(["build", "-s", "complex_config"])
Expand Down

0 comments on commit e680e9e

Please sign in to comment.