Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
s/constraints_enabled/contract
  • Loading branch information
MichelleArk committed Feb 23, 2023
commit b629e344cdb390878d066e7c702575b25407aa63
2 changes: 1 addition & 1 deletion tests/adapter/dbt/tests/adapter/constraints/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
data_type: date
- name: my_model_wrong_data_type
config:
constraints_enabled: true
contract: true
columns:
- name: id
data_type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def test__constraints_wrong_column_data_types(
manifest = get_manifest(project.project_root)
model_id = "model.test.my_model_wrong_data_type"
my_model_config = manifest.nodes[model_id].config
constraints_enabled_actual_config = my_model_config.constraints_enabled
contract_actual_config = my_model_config.contract

assert constraints_enabled_actual_config is True
assert contract_actual_config is True

expected_compile_error = "Please ensure the name, data_type, order, and number of columns in your `yml` file match the columns in your SQL file."
expected_schema_file_columns = f"Schema File Columns: id {int_type}, color {string_type}, date_day DATE, num_array {int_array_type}"
Expand Down