[OpenSTEF 4.0] Doctests do not fully test documentation examples

オープン
#714 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Python
スター
169
フォーク
59
平均マージ
4日 15時間
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

OpenSTEF/openstef のほかの issue

OpenSTEF/openstef の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。