Skip to content

Commit

Permalink
Tweak unique_schema name generation
Browse files Browse the repository at this point in the history
  • Loading branch information
gshank committed Feb 21, 2022
1 parent 635ac34 commit 51aad7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/dbt/tests/fixtures/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def prefix():
@pytest.fixture
def unique_schema(request, prefix) -> str:
test_file = request.module.__name__
# We only want the last part of the name
test_file = test_file.split('.')[-1]
unique_schema = f"{prefix}_{test_file}"
return unique_schema

Expand Down

0 comments on commit 51aad7c

Please sign in to comment.