We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0adc1d commit cd7b257Copy full SHA for cd7b257
server/lomas_server/tests/utils.py
@@ -1,3 +1,4 @@
1
+import warnings
2
from json import loads
3
from test.support import sleeping_retry
4
@@ -33,6 +34,10 @@ def submit_job_wait(
33
34
return Job(status="failed", status_code=query_job_submit.status_code, error=error)
35
36
job_uid = query_job_submit.json()["uid"]
- job = wait_for_job(client, f"/status/{job_uid}", headers=headers)
37
+
38
+ # Didn't manage to Job.model_validate without warning from TypeAdapter
39
+ with warnings.catch_warnings():
40
+ warnings.simplefilter("ignore", UserWarning)
41
+ job = wait_for_job(client, f"/status/{job_uid}", headers=headers)
42
43
return job
0 commit comments