[OpenSTEF 4.0] Doctests do not fully test documentation examples

Aperta
#714 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

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.

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

Descrizione

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
Lingua principale
Python
Stelle
169
Fork
59
Merge medio
4g 15h
PR unite (30g)
8

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 OpenSTEF/openstef

Tutte le issue di OpenSTEF/openstef

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.