Skip to content

pip in /. for datamodel-code-generator - Update #962220809 #110

pip in /. for datamodel-code-generator - Update #962220809

pip in /. for datamodel-code-generator - Update #962220809 #110

GitHub Actions / Test Report ubuntu-latest:3.13 failed Feb 15, 2025 in 0s

89 tests run, 83 passed, 5 skipped, 1 failed.

Annotations

Check failure on line 112 in tests/jms/test_projects.py

See this annotation in the file changed.

@github-actions github-actions / Test Report ubuntu-latest:3.13

test_projects.test_project_integration

KeyError: 'prolog'
Raw output
client = <ansys.hps.client.client.Client object at 0x7f332476e510>

    def test_project_integration(client):
    
        jms_api = JmsApi(client)
        proj_name = f"test_jms_ProjectTest"
    
        proj = Project(name=proj_name, active=True, priority=10)
        proj = jms_api.create_project(proj, replace=True)
    
        proj = jms_api.get_project(id=proj.id)
        assert proj.creation_time is not None
        assert proj.priority == 10
        assert proj.active == True
    
        proj = jms_api.get_projects(name=proj.name, statistics=True)[0]
        assert proj.statistics["num_jobs"] == 0
    
        # statistics["eval_status"] might get few seconds until is populated on the server
        timeout = time.time() + 120
        while not proj.statistics["eval_status"] and time.time() < timeout:
            time.sleep(2)
            proj = jms_api.get_projects(id=proj.id, statistics=True)[0]
>       assert proj.statistics["eval_status"]["prolog"] == 0
E       KeyError: 'prolog'

tests/jms/test_projects.py:112: KeyError