Skip to content

Commit

Permalink
trying to make python test more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
benc-db committed Sep 27, 2024
1 parent 6598360 commit a73a39d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/functional/adapter/python_model/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def model(dbt, spark):
config:
marterialized: table
tags: ["python"]
location_root: '{{ env_var("DBT_DATABRICKS_LOCATION_ROOT") }}'
location_root: '{{ env_var("DBT_DATABRICKS_LOCATION_ROOT") }}/{schema}'
columns:
- name: date
tests:
Expand Down
7 changes: 7 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,13 @@ 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.format(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 a73a39d

Please sign in to comment.