Tests: pytest settings from `tox.ini` and `setup.cfg`

Aperta Adatta ai principianti
#161 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
88/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
ci-cd, testing

Direzione di ricerca

Inizia da tests/repo/python-adapter.test.ts e dai fixture esistenti per pytest.ini e pyproject.toml; leggi come testano readPytestSettings. Aggiungi fixture sintetici e test per entrambe le chiavi in tox.ini [pytest] e setup.cfg [tool:pytest], includendo una continuazione rientrata e il fallback quando tox.ini non contiene una sezione [pytest]. Esegui npm test; se un test rivela un comportamento errato, segnalalo separatamente, come richiesto dalla segnalazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

adapter good first issue

readPytestSettings reads [pytest] from tox.ini and [tool:pytest] from setup.cfg. tests/repo/python-adapter.test.ts only covers pytest.ini and pyproject.toml.

Done when: there are tests for:

  • python_files and testpaths from tox.ini [pytest], including a value continued on an indented line
  • the same keys from setup.cfg [tool:pytest]
  • a tox.ini without [pytest] that's skipped in favour of setup.cfg

This is test-only. If a test shows wrong behaviour, open a bug with the failing case instead of fixing it in the same PR.


New to DiffCI? See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
18h 41m
PR unite (30g)
48

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di DiffCI/core

Tutte le issue di DiffCI/core

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.