[OpenSTEF 4.0] Doctests do not fully test documentation examples

Abierto
#714 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python

Línea de trabajo

Start with the docstring example in packages/openstef-beam/src/openstef_beam/benchmarking/target_provider.py around line 98, which calls the removed concat_featurewise. Run poe doctests to confirm it passes despite the broken call, then find why that module's docstring is not collected (doctest config or the poe task definition). Done when the doctest run fails on the stale reference, and the example is either fixed or left for a follow-up.

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

Descripción

OpenSTEF 4.0

Describe the bug
Within the example code within the docstring of TargetProvider, a function concat_featurewise is used that does not exist (anymore). https://github.com/OpenSTEF/openstef/blob/db7276249b67450e66bf4d92e1bbf24a58b9d0e3/packages/openstef-beam/src/openstef_beam/benchmarking/target_provider.py#L98
This example will therefore not work, and the documentation example should probably be updated to be something like return VersionedTimeSeriesDataset.concat(datasets, mode="inner"). This issue ticket is not about updating the example, but that the doctests does not detect this issue.

Expected behavior
I would expect running poe doctests would detect that the function concat_featurewise from the example does not exist and fail the tests, as to me this is exactly what the doctests are for: notifying the programmer after a change that the documentation examples need to be updated.

Screenshots

Image
Lenguaje dominante
Python
Estrellas
169
Forks
59
Merge medio
4 d 15 h
PR fusionados (30 d)
8

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenSTEF/openstef

Todos los issues de OpenSTEF/openstef

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.