Skip to content

Commit

Permalink
modify test with casing
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyyeo committed May 16, 2022
1 parent 854d334 commit efee51f
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 9 deletions.
21 changes: 13 additions & 8 deletions integration_tests/models/sql/schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,43 @@ models:
tests:
- accepted_values:
values:
- '1'
- "1"

- name: count_b
tests:
- accepted_values:
values:
- '1'
- "1"

- name: count_c
tests:
- accepted_values:
values:
- '1'
- "1"

- name: count_d
tests:
- accepted_values:
values:
- '1'
- "1"

- name: count_e
tests:
- accepted_values:
values:
- '1'
- "1"

- name: count_f
tests:
- accepted_values:
values:
- '1'
- "1"

- name: count_g
tests:
- accepted_values:
values:
- '5'
- "5"

- name: test_get_column_values_where
tests:
Expand Down Expand Up @@ -163,7 +163,12 @@ models:
tests:
- dbt_utils.not_constant

- name: test_union_exclude
- name: test_union_exclude_lowercase
tests:
- dbt_utils.equality:
compare_model: ref('data_union_exclude_expected')

- name: test_union_exclude_uppercase
tests:
- dbt_utils.equality:
compare_model: ref('data_union_exclude_expected')
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

{{ dbt_utils.union_relations(
relations=[
ref('data_union_table_1'),
ref('data_union_table_2'),
],
exclude=['NAME']
) }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
select
{{ dbt_utils.star(ref("test_union_exclude_base"), except=["_dbt_source_relation"]) }}

from {{ ref("test_union_exclude_base") }}
from {{ ref("test_union_exclude_base_lowercase") }}
4 changes: 4 additions & 0 deletions integration_tests/models/sql/test_union_exclude_uppercase.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
select
{{ dbt_utils.star(ref("test_union_exclude_base"), except=["_DBT_SOURCE_RELATION"]) }}

from {{ ref("test_union_exclude_base_uppercase") }}

0 comments on commit efee51f

Please sign in to comment.