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

Four test assertions carried over from the C# suite are still commented out

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing-qa

Direzione di ricerca

Inizia da tests/test_dfsu2D.py alle righe 404, 469 e 806, oltre a tests/test_dfs_static_item.py alla riga 113. Aggiungi le tre asserzioni AxisUnit specificate, quindi determina se il TODO rimanente debba diventare un test reale o essere rimosso. Esegui i file di test interessati e conferma che le asserzioni abbiano esito positivo e che non rimanga alcun TODO commentato.

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

Descrizione

Four assertions carried over from the original C# test suite are still commented out:

  • tests/test_dfsu2D.py:404# TODO: Assert.AreEqual(eumUnit.eumUmeter, axis.AxisUnit);
  • tests/test_dfsu2D.py:469 — same
  • tests/test_dfsu2D.py:806# TODO: Implement?
  • tests/test_dfs_static_item.py:113# TODO: Assert.AreEqual(eumUnit.eumUmeter, axis.AxisUnit

The three AxisUnit ones are a single, small check in Python:

assert axis.AxisUnit == eumUnit.eumUmeter

If that holds, the tests get slightly stronger for free. If it does not hold, that is more interesting than the test, and worth a separate issue.

test_dfsu2D.py:806 is vaguer and may just be a note that the C# original tested something the Python port does not cover; it should either become a real test or be removed.

Small, self-contained, and a reasonable first contribution.

Lingua principale
Python
Stelle
5
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

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 DHI/mikecore-python

Tutte le issue di DHI/mikecore-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.