The empty-cell benchmark test builds its toy audit by hand

Aperta Adatta ai principianti
#1,338 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
Refactoring
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

Leggi tests/benchmark_helpers.py e il fixture empty_cell_result in tests/test_benchmark.py. Aggiorna _write_toy_audit affinché accetti il DataFrame costruito dal fixture, quindi usalo per scrivere l’audit di prova e rimuovere il dizionario del manifest duplicato. Il lavoro è completato quando il fixture è più corto di circa dieci righe e il test esistente passa senza modifiche.

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

Descrizione

enhancement good first issue testing

Where: tests/test_benchmark.py (empty_cell_result), tests/benchmark_helpers.py.

Current gap: _write_toy_audit writes a two-attribute toy manifest for most benchmark tests (#1325), but the empty-intersectional-cell fixture still writes its own CSV and manifest dict (40 rows, one disadvantaged value pair that never co-occurs) with the same keys.

Suggested approach: Give _write_toy_audit an optional frame so the fixture passes its constructed rows, and drop the duplicated manifest dict.

Done when: the fixture is about ten lines shorter and the test passes unchanged.

Lingua principale
HTML
Stelle
47
Fork
45
Merge medio
2h 39m
PR unite (30g)
57

Preparare l'ambiente

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 yakew7/Fair-Code

Tutte le issue di yakew7/Fair-Code

Issue simili

Altre issue su Testing & QA

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.