From 460b72f79b95a293611010cb046a7ce43469585c Mon Sep 17 00:00:00 2001 From: Mila Page <67295367+VersusFacit@users.noreply.github.com> Date: Mon, 15 Nov 2021 05:07:22 -0800 Subject: [PATCH] Feature/3997 profiles test selection flag (#4270) * Address 3997. Test selection flag can be in profile.yml. * Per Jerco's 4104 PR unresolved comments, unify i.s. predicate and add env var. * Couple of flake8 touchups. * Classier error handling using enum semantics. * Cherry-pick in part of Gerda's commit to hopefully avoid a future merge conflict. * Add 3997 to changelog. Co-authored-by: Mila Page automatic commit by git-black, original commits: 39f350fe89bd11215208be2513bb97020287a636 5d1b104e1f33551dad502802eea34d74a977e22d --- core/dbt/graph/selector.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/dbt/graph/selector.py b/core/dbt/graph/selector.py index 31ef8480f54..c6acac2185e 100644 --- a/core/dbt/graph/selector.py +++ b/core/dbt/graph/selector.py @@ -93,8 +93,7 @@ def get_nodes_from_criteria( neighbors = self.collect_specified_neighbors(spec, collected) direct_nodes, indirect_nodes = self.expand_selection( - selected=(collected | neighbors), - indirect_selection=spec.indirect_selection + selected=(collected | neighbors), indirect_selection=spec.indirect_selection ) return direct_nodes, indirect_nodes