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 e057a26 commit eb6de3bCopy full SHA for eb6de3b
services/api-server/tests/unit/conftest.py
@@ -566,11 +566,8 @@ def project_job_rpc_get() -> ProjectJobRpcGet:
566
567
@pytest.fixture
568
def job_links() -> JobLinks:
569
- extra = JobLinks.model_config.get("json_schema_extra")
570
- assert isinstance(extra, dict)
571
- examples = extra.get("examples")
572
- assert isinstance(examples, list) and len(examples) > 0
573
- return JobLinks.model_validate(examples[0])
+ example = JobLinks.model_json_schema()["examples"][0]
+ return JobLinks.model_validate(example)
574
575
576
0 commit comments