generated from john/python-template
V6.0 Phase 3 - Add cloudflare tunnel. Remote access to app via the tunnel now working.
Quality Gate / gate (push) Failing after 49s
Quality Gate / gate (push) Failing after 49s
This commit is contained in:
@@ -20,9 +20,24 @@ from transcription.services.jobs import JobDeleteBlockedError
|
||||
from transcription.services.jobs import JobNotFoundError
|
||||
from transcription.services.jobs import JobResubmitBlockedError
|
||||
from transcription.services.jobs import JobService
|
||||
from transcription.services.jobs import _as_naive_utc
|
||||
from transcription.services.jobs import _utc_now_naive
|
||||
from transcription.services.sources import SourceService
|
||||
|
||||
|
||||
def test_utc_now_naive_returns_naive_datetime():
|
||||
now = _utc_now_naive()
|
||||
assert now.tzinfo is None
|
||||
|
||||
|
||||
def test_as_naive_utc_normalizes_timezone_aware_datetime():
|
||||
aware = datetime.now(UTC)
|
||||
normalized = _as_naive_utc(aware)
|
||||
|
||||
assert normalized.tzinfo is None
|
||||
assert normalized == aware.replace(tzinfo=None)
|
||||
|
||||
|
||||
class TestJobService:
|
||||
@pytest.mark.asyncio
|
||||
async def test_create_and_read_job(self, job_service: JobService, document_service: DocumentService):
|
||||
|
||||
Reference in New Issue
Block a user