Coverage for backend/tests/eis/test_routers.py: 100%
18 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-09-22 15:38 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2025-09-22 15:38 +0000
1from app.eis import schemas
2from tests.conftest import CRUDTestBase
3from tests.utils.table_data import JOB_ALERT_EMAIL_DATA, JOB_SCRAPED_DATA
6class TestJobAlertEmailCRUD(CRUDTestBase):
7 endpoint = "/jobalertemails"
8 schema = schemas.JobAlertEmailCreate
9 out_schema = schemas.JobAlertEmailOut
10 test_data = "test_job_alert_emails"
11 create_data = JOB_ALERT_EMAIL_DATA
12 update_data = {
13 "id": 1,
14 "subject": "Updated Python",
15 }
16 add_fixture = ["test_service_logs"]
19class TestScrapedJobCRUD(CRUDTestBase):
20 endpoint = "/scrapedjobs"
21 schema = schemas.ScrapedJobCreate
22 out_schema = schemas.ScrapedJobOut
23 test_data = "test_scraped_jobs"
24 create_data = JOB_SCRAPED_DATA
25 update_data = {
26 "id": 1,
27 "title": "Updated Python",
28 }