Skip to content

Maint: Modify nightly run #169

Maint: Modify nightly run

Maint: Modify nightly run #169

GitHub Actions / Remote Connect Test Report 3.9 failed Apr 18, 2024 in 0s

16 tests run, 15 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 347 in tests/test_mechanical.py

See this annotation in the file changed.

@github-actions github-actions / Remote Connect Test Report 3.9

test_mechanical.test_upload_attach_mesh_solve_use_api_distributed_solve

AssertionError: assert '5' == '4'
  
  - 4
  + 5
Raw output
mechanical = Ansys Mechanical [Ansys Mechanical Enterprise]
Product Version:242
Software build date: 04/17/2024 14:20:00

tmpdir = local('/tmp/pytest-of-runner/pytest-0/test_upload_attach_mesh_solve_1')

    @pytest.mark.remote_session_connect
    def test_upload_attach_mesh_solve_use_api_distributed_solve(mechanical, tmpdir):
        # default is distributed solve
    
        result = solve_and_return_results(mechanical)
    
        dict_result = json.loads(result)
    
        min_value = float(dict_result["Minimum"].split(" ")[0])
        max_value = float(dict_result["Maximum"].split(" ")[0])
        avg_value = float(dict_result["Average"].split(" ")[0])
    
        print(f"min_value = {min_value} max_value = {max_value} avg_value = {avg_value}")
    
        result = mechanical.run_python_script("ExtAPI.DataModel.Project.Model.Analyses[0].ObjectState")
>       assert "5" == result.lower()
E       AssertionError: assert '5' == '4'
E         
E         - 4
E         + 5

tests/test_mechanical.py:347: AssertionError