Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update tests to handle issue with skin mesh #1206

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 14 additions & 5 deletions tests/test_propertyfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,22 @@ def check_on_property_field_from_simplebar(prop_field):
assert prop_field.data is not None
assert len(prop_field.data) != 0
assert len(prop_field.data) == 1400
assert prop_field.data[15] == 29
assert np.allclose(prop_field.data[12], 10)
""" to uncomment
if conftest.SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_7_1:
assert prop_field.data[15] == 1502
assert np.allclose(prop_field.data[12], 1603)
assert prop_field.data[1201] == 1980
assert prop_field.get_entity_data(8) == [1605]
assert prop_field.get_entity_data_by_id(23) == [1707]
else:
assert prop_field.data[15] == 29
assert np.allclose(prop_field.data[12], 10)
assert prop_field.data[1201] == 2500
assert prop_field.get_entity_data(8) == [7]
assert prop_field.get_entity_data_by_id(23) == [60]
"""
assert prop_field.elementary_data_count == 1400
assert prop_field.data[1201] == 2500
assert prop_field.elementary_data_shape == 1
assert prop_field.get_entity_data(8) == [7]
assert prop_field.get_entity_data_by_id(23) == [60]
assert prop_field.location == locations.elemental
assert prop_field.location == prop_field.scoping.location
assert prop_field.size == 1400
Expand Down