tests/js_helpers.py is imported by bare name, so pytest --import-mode=importlib cannot collect the parity tests
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 76/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
- 領域
- build-system, testing
調査の方向性
pyproject.toml、tests/test_declared_dependencies.py、および tests/test_js_parity_*.py の import を確認してください。python3 -m pytest tests/test_js_parity_profile.py -q --import-mode=importlib で収集エラーを再現し、その後、提案されている2つの import 方法を比較してください。依存関係のホワイトリストが削除され、CI で両方の import モードにおいてパリティテストが収集されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Where: tests/test_js_parity_*.py (from js_helpers import ..., added by the split in #938), pyproject.toml, tests/test_declared_dependencies.py.
Current gap: the parity tests import their shared helpers as the top-level module js_helpers, which only works because pytest's default prepend import mode puts tests/ on sys.path. Under --import-mode=importlib (which pytest recommends for new projects) collection fails, and the helper had to be whitelisted in NOT_A_PYPROJECT_DEPENDENCY so the dependency check would not call it a third-party package.
Repro:
$ python3 -m pytest tests/test_js_parity_profile.py -q --import-mode=importlib
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
Suggested approach: add pythonpath = ["tests"] under [tool.pytest.ini_options] (and keep the module name) or make tests a package and import tests.js_helpers; then drop the whitelist entry and run the suite in both import modes in CI.
- 主要言語
- HTML
- スター
- 47
- フォーク
- 45
- 平均マージ
- 2時間 49分
- マージ済み PR(30日)
- 61
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
yakew7/Fair-Code のほかの issue
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
bug documentation good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
Numeric column headers keep their type in Python (the integer 2020) and are text in the web engineオープンbug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
yakew7/Fair-Code の issue をすべて見る
似ている issue
-
bug/1-unconfirmed kind/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
anomalyco/opencode#56380 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
Frontend Size: XS
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
open-telemetry/opentelemetry-go-compile-instrumentation#1507 ·
メンテナーはふだん 3 日以内に返信