Skip to content

Commit 5a80570

Browse files
committed
fix test
1 parent 52ae14d commit 5a80570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import pytest
3131

3232
from ansys import dpf
33-
from ansys.dpf.core import examples, path_utilities
33+
from ansys.dpf.core import check_version, examples, path_utilities
3434
import conftest
3535
from conftest import running_docker
3636

@@ -510,7 +510,7 @@ def test_server_without_context(remote_config_server_type):
510510
)
511511
none_type = dpf.core.AvailableServerContexts.no_context.licensing_context_type
512512
assert server.context.licensing_context_type == none_type
513-
if server.check_version("10.0"): # Before, there was a bug
513+
if check_version.server_meet_version_and_raise("10.0", server): # Before, there was a bug
514514
assert len(dpf.core.available_operator_names(server=server)) < 20
515515

516516

0 commit comments

Comments
 (0)