Skip to content

Commit

Permalink
Switch to new API version
Browse files Browse the repository at this point in the history
API version 0.4.5 has the correct .proto file.
Re-enable libuserd tests.
  • Loading branch information
randallfrank committed Dec 30, 2024
1 parent 2a83baf commit 2291b36
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ classifiers = [

dependencies = [
"importlib-metadata>=4.0; python_version<='3.8'",
"ansys-api-pyensight==0.4.4",
"ansys-api-pyensight==0.4.5",
"requests>=2.28.2",
"docker>=6.1.0",
"urllib3<3.0.0",
Expand Down
2 changes: 0 additions & 2 deletions tests/example_tests/test_libuserd.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import pytest


@pytest.mark.skip(reason="Temporarily disabled until protobuffer changes complete")
def test_libuserd_basic(tmpdir, pytestconfig: pytest.Config):
data_dir = tmpdir.mkdir("datadir")
use_local = pytestconfig.getoption("use_local_launcher")
Expand Down Expand Up @@ -34,7 +33,6 @@ def test_libuserd_basic(tmpdir, pytestconfig: pytest.Config):
libuserd.shutdown()


@pytest.mark.skip(reason="Temporarily disabled until protobuffer changes complete")
def test_libuserd_synthetic_time(tmpdir, pytestconfig: pytest.Config):
data_dir = tmpdir.mkdir("datadir")
use_local = pytestconfig.getoption("use_local_launcher")
Expand Down
5 changes: 0 additions & 5 deletions tests/example_tests/test_libuserd_exhaustive.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from enum import Enum

import numpy as np
import pytest

ELEMENT_STRING_TO_INT_MAP = {
"point": 0,
Expand Down Expand Up @@ -842,7 +841,6 @@ def compare(userd, session, file1_userd, file2_userd, file1_session, file2_sessi
)


@pytest.mark.skip(reason="Temporarily disabled until protobuffer changes complete")
def test_cfx(launch_libuserd_and_get_files):
file_1 = "InjectMixer.res"
file_2 = None
Expand All @@ -862,7 +860,6 @@ def test_cfx(launch_libuserd_and_get_files):
compare(userd, session, file1_userd, file2_userd, file1_session, file2_session, 0)


@pytest.mark.skip(reason="Temporarily disabled until protobuffer changes complete")
def test_fluent_hdf5(launch_libuserd_and_get_files):
file_1 = "axial_comp-1-01438.cas.h5"
file_2 = "axial_comp-1-01438.dat.h5"
Expand Down Expand Up @@ -915,7 +912,6 @@ def test_fluent_hdf5(launch_libuserd_and_get_files):
# smoke_test(userd, file1_userd, file2_userd)


@pytest.mark.skip(reason="Temporarily disabled until protobuffer changes complete")
def test_ansys_rst(launch_libuserd_and_get_files):
file_1 = "transient.rst"
file_2 = None
Expand All @@ -934,7 +930,6 @@ def test_ansys_rst(launch_libuserd_and_get_files):
smoke_test(userd, file1_userd, file2_userd)


@pytest.mark.skip(reason="Temporarily disabled until protobuffer changes complete")
def test_vtk(launch_libuserd_and_get_files):
file_1 = "rotor_linear_step21_unorm.vtk"
file_2 = None
Expand Down

0 comments on commit 2291b36

Please sign in to comment.