Compare commits

...

2 Commits

Author SHA1 Message Date
Nathaniel May
2f68592b01 changelog entry 2022-04-08 11:40:51 -04:00
Nathaniel May
e1ec86d17e run seeds in every test 2022-04-08 11:36:36 -04:00
2 changed files with 16 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
kind: Under the Hood
body: update test file to pass in multi threaded runs
time: 2022-04-08T11:40:40.547981-04:00
custom:
Author: nathaniel-may
Issue: "4904"
PR: "5015"

View File

@@ -97,35 +97,43 @@ class TestTagSelection(SelectionFixtures):
_verify_select_tag(results)
def test_select_tag_selector_str(self, project):
run_dbt(["seed"])
results = run_dbt(["run", "--selector", "tag_specified_as_string_str"])
_verify_select_tag(results)
def test_select_tag_selector_dict(self, project):
run_dbt(["seed"])
results = run_dbt(["run", "--selector", "tag_specified_as_string_dict"])
_verify_select_tag(results)
def test_select_tag_and_children(self, project): # noqa
run_dbt(["seed"])
results = run_dbt(["run", "--models", "+tag:specified_in_project+"])
_verify_select_tag_and_children(results)
def test_select_tag_and_children_selector_str(self, project): # noqa
run_dbt(["seed"])
results = run_dbt(["run", "--selector", "tag_specified_in_project_children_str"])
_verify_select_tag_and_children(results)
def test_select_tag_and_children_selector_dict(self, project): # noqa
run_dbt(["seed"])
results = run_dbt(["run", "--selector", "tag_specified_in_project_children_dict"])
_verify_select_tag_and_children(results)
def test_select_tag_in_model_with_project_config(self, project): # noqa
run_dbt(["seed"])
results = run_dbt(["run", "--models", "tag:bi"])
_verify_select_bi(results)
def test_select_tag_in_model_with_project_config_selector(self, project): # noqa
run_dbt(["seed"])
results = run_dbt(["run", "--selector", "tagged-bi"])
_verify_select_bi(results)
# check that model configs aren't squashed by project configs
def test_select_tag_in_model_with_project_config_parents_children(self, project): # noqa
run_dbt(["seed"])
results = run_dbt(["run", "--models", "@tag:users"])
assert len(results) == 4
@@ -159,6 +167,7 @@ class TestTagSelection(SelectionFixtures):
]
def test_select_tag_in_model_with_project_config_parents_children_selectors(self, project):
run_dbt(["seed"])
results = run_dbt(["run", "--selector", "user_tagged_childrens_parents"])
assert len(results) == 4