diff --git a/tests/functional/data_test_patch/test_singular_test_patch.py b/tests/functional/data_test_patch/test_singular_test_patch.py index bb4242ad47a..a57f93b50c3 100644 --- a/tests/functional/data_test_patch/test_singular_test_patch.py +++ b/tests/functional/data_test_patch/test_singular_test_patch.py @@ -1,3 +1,5 @@ +import os + import pytest from dbt.tests.util import get_artifact, run_dbt, run_dbt_and_capture @@ -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 )