Skip to content

Commit 0167033

Browse files
committed
test_api : fix check paths on windows
1 parent 22a88f3 commit 0167033

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

tests/test_api.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ def test_api_registerNode(self):
6868
assert "InputFile" in nodes
6969

7070
def test_api_loadGraph(self, sceneFilepath):
71+
def assertPathsAreEqual(p1, p2):
72+
assert os.path.normpath(p1) == os.path.normpath(p2)
7173
g = loadGraph(sceneFilepath, failedOnCompatbility=True)
72-
assert g.filepath == sceneFilepath
73-
assert os.path.dirname(g.cacheDir) == os.path.dirname(sceneFilepath)
74+
assertPathsAreEqual(g.filepath, sceneFilepath)
75+
assertPathsAreEqual(os.path.dirname(g.cacheDir), os.path.dirname(sceneFilepath))
7476

7577
def test_api_loadGraphRaiseOnCompatibility(self, sceneFilepath):
7678
node = getInputFileNodePlugin()

0 commit comments

Comments
 (0)