Skip to content

Commit

Permalink
fix path for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aranke committed Sep 23, 2024
1 parent 2ccf931 commit 43164f7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/functional/data_test_patch/test_singular_test_patch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import os

import pytest

from dbt.tests.util import get_artifact, run_dbt, run_dbt_and_capture
Expand Down Expand Up @@ -39,7 +41,13 @@ def tests(self):

def test_compile(self, project):
_, log_output = run_dbt_and_capture(["compile"])

file_path = (
"tests\\schema_with_invalid_name.yml"
if os.name == "nt"
else "tests/schema_with_invalid_name.yml"
)
assert (
"Did not find matching node for patch with name 'my_double_test' in the 'data_tests' section of file 'tests/schema_with_invalid_name.yml'"
f"Did not find matching node for patch with name 'my_double_test' in the 'data_tests' section of file '{file_path}'"
in log_output
)

0 comments on commit 43164f7

Please sign in to comment.