Skip to content

Commit

Permalink
update object names for generic test case tests for store_failures_as
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Oct 3, 2023
1 parent 90792e0 commit c09b81d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 21 deletions.
34 changes: 17 additions & 17 deletions tests/adapter/dbt/tests/adapter/store_test_failures_tests/_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,24 @@
version: 2
models:
- name: chipmunks
- name: chipmunks
columns:
- name: str
- name: name
tests:
- unique:
store_failures: true
- not_null:
store_failures_as: view
- accepted_values:
store_failures: false
store_failures_as: table
values:
- alvin
- simon
- theodore
- shirt: str
- unique:
store_failures: true
- not_null:
store_failures_as: view
- accepted_values:
store_failures: false
store_failures_as: table
values:
- alvin
- simon
- theodore
- name: shirt
tests:
- not_null:
store_failures: true
store_failures_as: view
- not_null:
store_failures: true
store_failures_as: view
"""
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,12 @@ def models(self):

def test_tests_run_successfully_and_are_stored_as_expected(self, project):
expected_results = {
TestResult("name__unique", TestStatus.Pass, "table"),
TestResult("name__not_null", TestStatus.Pass, "view"),
TestResult("name__accepted_values", TestStatus.Fail, "table"),
TestResult("shirt__not_null", TestStatus.Fail, "view"),
TestResult("unique_chipmunks_name", TestStatus.Pass, "table"),
TestResult("not_null_chipmunks_name", TestStatus.Pass, "view"),
TestResult(
"accepted_values_chipmunks_name__alvin__simon__theodore", TestStatus.Fail, "table"
),
TestResult("not_null_chipmunks_shirt", TestStatus.Fail, "view"),
}

# run the tests
Expand Down

0 comments on commit c09b81d

Please sign in to comment.