From 71d7055ec48a2c138aa546b91b9f796953eb0b10 Mon Sep 17 00:00:00 2001 From: abyrne Date: Fri, 5 Jan 2024 14:20:04 -0500 Subject: [PATCH] refactor: remove deprecated unit test --- tests/unit/restapi/job/test_service.py | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/tests/unit/restapi/job/test_service.py b/tests/unit/restapi/job/test_service.py index ee7d85a85..093b60438 100644 --- a/tests/unit/restapi/job/test_service.py +++ b/tests/unit/restapi/job/test_service.py @@ -88,34 +88,11 @@ def job_submission_data(app: Flask, workflow_tar_gz: BinaryIO) -> dict[str, Any] } -@pytest.fixture -def job_create_data(app: Flask) -> dict[str, Any]: - return { - "experiment_id": 1, - "queue_id": 1, - "timeout": "12h", - "entry_point": "main", - "entry_point_kwargs": "-P var1=testing", - "depends_on": None, - } - - @pytest.fixture def job_service(dependency_injector) -> JobService: return dependency_injector.get(JobService) -# def test_create(job_service: JobService, job_create_data: dict[str, Any]): -# job: Job = job_service.create(**job_create_data) - -# assert job.experiment_id == 1 -# assert job.queue_id == 1 -# assert job.timeout == "12h" -# assert job.entry_point == "main" -# assert job.entry_point_kwargs == "-P var1=testing" -# assert job.depends_on is None - - @freeze_time("2020-08-17T18:46:28.717559") def test_get_all(db: SQLAlchemy, job_service: JobService): timestamp: datetime.datetime = datetime.datetime.now()