-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Round 2] Fix #9005: Allow singular tests to be documented in propert…
…ies.yml
- Loading branch information
Showing
11 changed files
with
251 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: Fixes | ||
body: Allow singular tests to be documented in properties.yml | ||
time: 2024-09-23T19:07:58.151069+01:00 | ||
custom: | ||
Author: aranke | ||
Issue: "9005" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
tests__my_singular_test_sql = """ | ||
with my_cte as ( | ||
select 1 as id, 'foo' as name | ||
union all | ||
select 2 as id, 'bar' as name | ||
) | ||
select * from my_cte | ||
""" | ||
|
||
tests__schema_yml = """ | ||
data_tests: | ||
- name: my_singular_test | ||
description: "{{ doc('my_singular_test_documentation') }}" | ||
config: | ||
error_if: ">10" | ||
meta: | ||
some_key: some_val | ||
""" | ||
|
||
tests__doc_block_md = """ | ||
{% docs my_singular_test_documentation %} | ||
Some docs from a doc block | ||
{% enddocs %} | ||
""" | ||
|
||
tests__invalid_name_schema_yml = """ | ||
data_tests: | ||
- name: my_double_test | ||
description: documentation, but make it double | ||
""" | ||
|
||
tests__malformed_schema_yml = """ | ||
data_tests: ¬_null | ||
- not_null: | ||
where: some_condition | ||
""" |
Oops, something went wrong.