Skip to content

Commit 3fd6642

Browse files
authored
Add pytest fixture for job definitions
1 parent 2296ff8 commit 3fd6642

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tests/integration/conftest.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ def job_defs(
318318
return [job1, job2]
319319

320320

321+
@pytest.fixture
321322
def jobs(job_defs: list[Job], db_session: Session) -> list[Job]:
322323
for job in job_defs:
323324
db_session.add(job)

0 commit comments

Comments
 (0)