From 586598d14f2a2151a6aee66b0b3f1670d287f6e3 Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Wed, 15 May 2024 10:11:45 +0200 Subject: [PATCH] Fixup test: more lenient wrt created job metadata --- tests/partitionedjobs/test_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/partitionedjobs/test_api.py b/tests/partitionedjobs/test_api.py index db79eb1..6ccd675 100644 --- a/tests/partitionedjobs/test_api.py +++ b/tests/partitionedjobs/test_api.py @@ -1,5 +1,6 @@ import datetime +import dirty_equals import pytest from openeo.util import rfc3339 from openeo_driver.testing import DictSubSet @@ -164,7 +165,7 @@ def test_create_and_list_job(self, api100, zk_db, dummy1): res = api100.get(f"/jobs").assert_status_code(200) assert res.json == { "jobs": [ - {"id": "b1-1-jb-0", "created": self.now.rfc3339, "status": "created"}, + dirty_equals.IsPartialDict({"id": "b1-1-jb-0", "created": self.now.rfc3339, "status": "created"}), {"id": expected_job_id, "created": self.now.rfc3339, "status": "created", "progress": 0}, ], "federation:missing": ["b2"],