Skip to content

Commit

Permalink
normalize paths for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Mar 26, 2024
1 parent efec28b commit 77c9144
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/functional/unit_testing/test_unit_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
test_my_model_incremental_yml_wrong_override,
test_my_model_incremental_yml_no_this_input,
)
from tests.unit.utils import normalize


class TestUnitTests:
Expand Down Expand Up @@ -492,9 +493,13 @@ def test_subfolder_unit_test(self, project):

# Test that correct path is written in logs
assert (
"target/compiled/test/models/subfolder/my_model.yml/models/subfolder/my_unit_test.sql"
normalize(
"target/compiled/test/models/subfolder/my_model.yml/models/subfolder/my_unit_test.sql"
)
in output
)
assert file_exists(
"target/compiled/test/models/subfolder/my_model.yml/models/subfolder/my_unit_test.sql"
normalize(
"target/compiled/test/models/subfolder/my_model.yml/models/subfolder/my_unit_test.sql"
)
)

0 comments on commit 77c9144

Please sign in to comment.