Skip to content

Commit

Permalink
Use Windows path in tests if sys.platform is win32.
Browse files Browse the repository at this point in the history
  • Loading branch information
devdanzin committed Aug 27, 2023
1 parent 325d629 commit 6725c6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/test_build_unit.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import sys
from unittest.mock import patch

import pytest
Expand Down Expand Up @@ -37,7 +38,9 @@ def checkout(self, revision, options):

class MockOperatorCls(BaseOperator):
name = "test"
data = {"/home/test1.py": None}
data = {
"C:\\home\\test1.py " if sys.platform == "win32" else "/home/test1.py": None
}

def __init__(self, *args, **kwargs):
pass
Expand Down

0 comments on commit 6725c6b

Please sign in to comment.