Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions doc/changelog.d/4565.test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix tests which are failing in the latest nightly [skip tests]
22 changes: 12 additions & 10 deletions tests/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,16 +602,18 @@ def test_general_exception_behaviour_in_session(new_solver_session):
graphics.mesh["mesh-1"] = {"surfaces_list": "*"}
graphics.mesh["mesh-1"].display()

# Post-process without data
with pytest.raises(RuntimeError) as exec_info:
# Invalid result.
graphics.contour["contour-velocity"] = {
"field": "velocity-magnitude",
"surfaces_list": ["wall-elbow"],
}
graphics.contour["contour-velocity"].display()
# Assert that exception is propagated from the Fluent server
assert isinstance(exec_info.value.__context__, grpc.RpcError)
# Doesn't throw exception in 26.1 - Fluent bug 1354052
if fluent_version < FluentVersion.v261:
# Post-process without data
with pytest.raises(RuntimeError) as exec_info:
# Invalid result.
graphics.contour["contour-velocity"] = {
"field": "velocity-magnitude",
"surfaces_list": ["wall-elbow"],
}
graphics.contour["contour-velocity"].display()
# Assert that exception is propagated from the Fluent server
assert isinstance(exec_info.value.__context__, grpc.RpcError)

solver.solution.run_calculation.iterate(iter_count=5)
graphics.contour["contour-velocity"] = {
Expand Down