Skip to content

Adiciona teste unitário para create_booking_raw - #34

Merged
ThomasTDS merged 2 commits into
masterfrom
test/unitario-create-booking-raw
Oct 2, 2026
Merged

ThomasTDS merged 2 commits into
masterfrom
test/unitario-create-booking-raw

Conversation

@ThomasTDS

Copy link
Copy Markdown
Owner

Resumo

  • create_booking_raw era o único método dos API Clients sem teste unitário. Na suíte completa os cenários BDD o cobriam, mas os testes unitários sozinhos ficavam em 98% de cobertura
  • O novo teste confere que o payload é enviado exatamente como recebido, inclusive com tipo inválido, e sem cookie de autenticação, como o create_booking

Test plan

  • mypy .
  • ruff check .
  • ruff format --check .
  • pytest tests/unit: 27/27 passando, cobertura de api/ e models/ em 100% só com os unitários

Era o único método dos API Clients sem teste unitário: só os cenários BDD o cobriam. Com ele, os testes unitários sozinhos cobrem 100% de api/ e models/.
@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ThomasTDS
ThomasTDS merged commit 319c18d into master Oct 2, 2026
7 checks passed
@ThomasTDS
ThomasTDS deleted the test/unitario-create-booking-raw branch October 2, 2026 19:20
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.

1 participant