DHI / DHI/mikecore-python

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

オープン 初心者向け
#49 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
5
フォーク
1
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

tests/test_dfsu2D.py の 404、469、806 行目と、tests/test_dfs_static_item.py の 113 行目から始めます。指定された 3 つの AxisUnit アサーションを追加し、その後、残りの TODO を実際のテストにするべきか削除すべきかを判断します。影響を受けるテストファイルを実行し、アサーションがパスし、コメントアウトされた TODO が残っていないことを確認します。

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

評価

技術スタック
python
領域
testing-qa
issue の種類
リファクタリング
難易度
2/5
見積もり時間
1〜3時間
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
78/100

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

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