Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

test: make pytest collect the infracost and sg_workflow tests

Aperta Adatta ai principianti
#403 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à
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
92/100
Tipo di issue
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

I due file da rinominare sono tests/providers/infracost/tests_infracost.py e tests/providers/sg_workflow/tests_sg_workflow.py. Esegui prima pytest --collect-only -q tests/providers per verificare che non compaiano nell'output, quindi rinominali entrambi con git mv in test_infracost.py e test_sg_workflow.py. È fatto quando lo stesso comando elenca i 30 test e pytest tests/ passa.

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

Descrizione

good first issue hacktoberfest tests
Problem

pytest only collects files named test_*.py or *_test.py. tests/providers/infracost/tests_infracost.py (6 tests) and tests/providers/sg_workflow/tests_sg_workflow.py (24 tests) don't match, so CI has never run them. They all pass when run by path today.

What to change

Rename both files to test_infracost.py and test_sg_workflow.py with git mv. No other changes.

Done when

pytest --collect-only -q tests/providers lists the 30 tests and CI is green.


Comment to claim this issue and wait to be assigned. Unclaimed or inactive for 3 days, it returns to the pool. Run pytest tests/ and black --line-length 120 before opening the PR.

Lingua principale
Python
Stelle
170
Fork
46
Merge medio
1g 20h
PR unite (30g)
9

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 StackGuardian/tirith

Tutte le issue di StackGuardian/tirith

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.