DHI / DHI/mikecore-python

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

Abierto Apto para principiantes
#49 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
5
Forks
1
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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:

```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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Empieza por tests/test_dfsu2D.py en las líneas 404, 469 y 806, además de tests/test_dfs_static_item.py en la línea 113. Añade las tres aserciones de AxisUnit especificadas y determina después si el TODO restante debería convertirse en una prueba real o eliminarse. Ejecuta los archivos de prueba afectados y confirma que las aserciones pasan y que no queda ningún TODO comentado.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
testing-qa
Tipo de issue
Refactorización
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Activo
Claridad
Bastante claro
Aptitud para principiantes
78/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.