You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def assert_job_metrics_matches_expectations(
dioptra_client: DioptraClient[DioptraResponseProtocol],
job_id: int,
expected: list[dict[str, Any]],
) -> None:
response = dioptra_client.jobs.get_metrics_by_id(job_id=job_id)
> assert response.status_code == HTTPStatus.OK and response.json() == expected
E AssertionError: assert (200 == <HTTPStatus.OK: 200> and [{'name': 'ac...value': 0.99}] == [{'name': 'ac...value': 0.99}]
E + where 200 = <tests.unit.restapi.lib.client.DioptraTestResponse object at 0x00000183AFF19850>.status_code
E + and <HTTPStatus.OK: 200> = HTTPStatus.OK
E
E At index 0 diff: {'name': 'accuracy', 'value': 4.1} != {'name': 'accuracy', 'value': 4.2}
E Use -v to get more diff)
The text was updated successfully, but these errors were encountered:
test_metrics
is failing in the Windows GitHub runner.When a second value for the accuracy metric is posted, a subsequent GET returns the first value instead of the newer value.
see:
https://github.com/usnistgov/dioptra/actions/runs/13035219363/job/36366305054?pr=722
The text was updated successfully, but these errors were encountered: