Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Lint

on:
push:
branches: [main]
branches: [main,development]
pull_request:
branches: [main]
branches: [main,development]

jobs:
lint:
Expand Down
2 changes: 1 addition & 1 deletion app/services/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from sqlmodel import Session

from app.api.schemas.enums import InputStatus, InputType
from app.core.config import AUDIO_CONTENT_TYPES, AUDIO_DIR
from app.core.config import AUDIO_DIR
from app.db.repositories import create_input, create_job, update_job
from app.models import Input, Job
from app.tasks.transcribe import transcribe_audio_task
Expand Down
1 change: 0 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from app.main import app
from app.api.deps import get_db
from app.core.config import API_PREFIX # single source of truth for all tests
from app.models import Template, FormSubmission, Job, Input, Extraction, Incident, Form, Report # noqa: F401 — registers tables

# ---------------------------------------------------------------------------
Expand Down
6 changes: 1 addition & 5 deletions tests/test_deletion.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
POST /api/v1/forms/purge, and API-key access control.
"""

import io
from datetime import datetime, timedelta, timezone
from pathlib import Path
from unittest.mock import patch

import pytest

Expand Down Expand Up @@ -90,7 +87,7 @@ def test_delete_template_deletes_submission_output_pdfs(self, client, db, tmp_pa
out_pdf.write_bytes(b"%PDF-1.4 filled")

tpl_id = _seed_template(client, pdf_path="tpl.pdf")
sub_id = _seed_submission(db, tpl_id, output_pdf_path="filled.pdf")
_seed_submission(db, tpl_id, output_pdf_path="filled.pdf")

client.delete(f"{API_PREFIX}/templates/{tpl_id}")
assert not out_pdf.exists()
Expand Down Expand Up @@ -249,7 +246,6 @@ def test_purge_requires_key_when_set(self, client):
assert resp.status_code == 401

def test_purge_with_valid_key(self, client, db):
tpl_id = _seed_template(client)
resp = client.post(
f"{API_PREFIX}/forms/purge?days=30",
headers={"X-API-Key": "secret-test-key"},
Expand Down
1 change: 0 additions & 1 deletion tests/test_v1_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
Whisper involvement — text input is fully synchronous.
"""

import pytest

TEXT_URL = "/api/v1/input/text"
INPUT_URL = "/api/v1/input"
Expand Down
1 change: 0 additions & 1 deletion tests/test_v1_voice.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""

import io
import pytest
from pathlib import Path
from unittest.mock import MagicMock, patch

Expand Down
Loading