Skip to content

Commit

Permalink
Add _v{version} to list output
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Jan 29, 2024
1 parent 482cb0d commit 33b5506
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/dbt/task/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def generate_selectors(self):
elif node.resource_type == NodeType.Unit:
assert isinstance(node, UnitTestDefinition)
unit_test_selector = ".".join([node.package_name, node.name])
if node.version:
unit_test_selector += f"_v{node.version}"

Check warning on line 117 in core/dbt/task/list.py

View check run for this annotation

Codecov / codecov/patch

core/dbt/task/list.py#L117

Added line #L117 was not covered by tests
yield f"unit_test:{unit_test_selector}"
else:
# everything else is from `fqn`
Expand Down

0 comments on commit 33b5506

Please sign in to comment.