Skip to content

Commit

Permalink
Fixup test: more lenient wrt created job metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed May 15, 2024
1 parent dff1124 commit 586598d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/partitionedjobs/test_api.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import datetime

import dirty_equals
import pytest
from openeo.util import rfc3339
from openeo_driver.testing import DictSubSet
Expand Down Expand Up @@ -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"],
Expand Down

0 comments on commit 586598d

Please sign in to comment.