Skip to content

test(nlp): tests para HFClient con respx (E3-04)#43

Merged
g-garciac2022 merged 1 commit into
mainfrom
feat/E3-04-nlp-tests
Jun 2, 2026
Merged

test(nlp): tests para HFClient con respx (E3-04)#43
g-garciac2022 merged 1 commit into
mainfrom
feat/E3-04-nlp-tests

Conversation

@g-garciac2022

Copy link
Copy Markdown
Collaborator

E3-04 — Tests NLP

Closes #39

Qué incluye

  • tests/test_nlp.py con respx (mockeando el POST al router de HF):
    • classify: etiqueta ganadora data[0][0]; forma inesperada → fail; HTTP 503 → propaga.
    • zero_shot: etiqueta ganadora data[0]; la petición incluye parameters.candidate_labels.
    • header Authorization: Bearer presente (cubre _apply_auth).
    • 2 integration tests (marcados, fuera de CI) que validan el contrato {label, score} contra HF real.
  • README: iteración E3-04 + cierre de la Épica 3.

Suite: 27 passed, 9 deselected (integration).

Cierra la Épica 3 (cliente HF + 2 tools núcleo —clickbait zero-shot y sentiment 3-vías— con tests).

@g-garciac2022 g-garciac2022 merged commit 13047b7 into main Jun 2, 2026
1 check passed
@g-garciac2022 g-garciac2022 deleted the feat/E3-04-nlp-tests branch June 2, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[E3-04] test(integrations): tests básicos para cliente y tools NLP

1 participant