scholarr/tests/unit
Justin Visser 813da91608 fix(scholars): improve validation, fix delete, add status badges
- Extract scholar ID parsing to dedicated module with robust URL
  handling (trailing slashes, fragments, extra query params, encoded
  characters) and per-token error feedback showing why each invalid
  entry was skipped
- Wrap delete_scholar DB commit in IntegrityError handler so cascade
  failures return a proper API error instead of 500
- Add ScholarStatusBadges component showing Pending/Failed/Partial/OK
  badges on scholar rows based on baseline_completed and last_run_status
- Show Pending badge in ScholarSettingsModal for unscraped scholars
- Surface failed_count and partial_count in dashboard latest run summary
  and recent run list items
- Extend backend validator tests with edge cases (empty, whitespace,
  unicode, URL-as-ID)
- Add integration tests for DELETE 404, DELETE with cascade, and POST
  with corrupted scholar_id
- Add comprehensive frontend tests for parsing logic and component
  behavior
2026-03-07 14:05:39 +01:00
..
services/domains fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script 2026-03-02 12:46:10 +01:00
test_auth_primitives.py remove legacy in-memory search state fallback 2026-02-19 22:31:26 +01:00
test_crossref_lookup.py Initial release prep 2026-02-27 10:46:05 +01:00
test_doi_normalize.py Initial release prep 2026-02-27 10:46:05 +01:00
test_fingerprints.py Initial release prep 2026-02-27 10:46:05 +01:00
test_healthz.py removed old UI 2026-02-17 15:21:08 +01:00
test_ingestion_arxiv_rate_limit.py fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script 2026-03-02 12:46:10 +01:00
test_ingestion_progress_reporting.py decompose application.py into enrichment, scholar processing, run completion 2026-02-27 14:19:39 +01:00
test_logging.py ci: add ruff linting and mypy type checking 2026-02-26 22:11:41 +01:00
test_logging_policy.py after audit 2026-03-01 18:14:22 +01:00
test_portability_import.py fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script 2026-03-02 12:46:10 +01:00
test_portability_normalize.py fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script 2026-03-02 12:46:10 +01:00
test_publication_identifiers.py Initial release prep 2026-02-27 10:46:05 +01:00
test_publication_pdf_queue_policy.py fix(db,frontend): reserve DB connections for API and reduce frontend polling 2026-03-02 19:09:06 +01:00
test_publication_pdf_resolution_pipeline.py fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script 2026-03-02 12:46:10 +01:00
test_request_delay_policy.py refactor: fix naming, remove duplicate code from decomposition 2026-02-27 16:07:24 +01:00
test_run_safety.py Initial release prep 2026-02-27 10:46:05 +01:00
test_runs_summary.py Initial release prep 2026-02-27 10:46:05 +01:00
test_scholar_parser.py decompose application.py into enrichment, scholar processing, run completion 2026-02-27 14:19:39 +01:00
test_scholar_search_safety.py fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script 2026-03-02 12:46:10 +01:00
test_scholar_source.py decompose application.py into enrichment, scholar processing, run completion 2026-02-27 14:19:39 +01:00
test_scholar_validators.py fix(scholars): improve validation, fix delete, add status badges 2026-03-07 14:05:39 +01:00
test_scholars_create_hydration.py fix: resolve mypy errors, fix arxiv test session isolation, and add premerge script 2026-03-02 12:46:10 +01:00
test_security_headers.py feat: production-harden app and finalize merge-ready UX/theme baseline 2026-02-19 15:43:20 +01:00
test_unpaywall_pdf_discovery.py Initial release prep 2026-02-27 10:46:05 +01:00
test_unpaywall_resolution.py Initial release prep 2026-02-27 10:46:05 +01:00
test_user_settings.py Initial release prep 2026-02-27 10:46:05 +01:00
test_user_validation.py after audit 2026-03-01 18:14:22 +01:00