Skip to content

Commit

Permalink
refactor: remove deprecated unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
abyrne authored and jkglasbrenner committed Jan 22, 2024
1 parent 81eca1a commit 71d7055
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/unit/restapi/job/test_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 71d7055

Please sign in to comment.