Skip to content

Commit 30c44c9

Browse files
authored
Unit tests: Disable test_all_result_operators_exist_path if running on docker on Windows (#624)
* Disable test_all_result_operators_exist_path if running on docker * Style check
1 parent fbe7103 commit 30c44c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_pathsupport.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
import pytest
33
import functools
44
import os
5+
from conftest import (
6+
running_docker
7+
)
58

69
from ansys import dpf
710
from pathlib import Path
@@ -31,7 +34,7 @@ def test_print_data_sources_path(allkindofcomplexity):
3134
assert len(data_sources.result_files) == 1
3235
assert os.path.normpath(data_sources.result_files[0]) == os.path.normpath(allkindofcomplexity)
3336

34-
37+
@pytest.mark.skipif(os.name == "nt" and running_docker, reason="Path is setting backslashes")
3538
def test_all_result_operators_exist_path(allkindofcomplexity):
3639
path = Path(allkindofcomplexity)
3740
model = dpf.core.Model(path)

0 commit comments

Comments
 (0)