pyvec / pyvec/naucse.python.cz

Arca backend used in tests

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

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

主要言語
言語のデータがありません
スター
335
フォーク
119
平均マージ
3時間 6分
マージ済み PR(30日)
1

説明

So I was looking at the failing test in test_arca_render and at first, I also had no clue what the problem is... But then after crawling through the logs and some experiments, I found the issue: the test is being run with arca.backend.CurrentEnvironmentBackend and the current environment has got naucse-render installed.

I really struggled to find why the hell CurrentEnvironmentBackend is used even though VenvBackend is configured in the tests (and even when I set the environ variable), but I finally found it in pytest.ini, the environ there overrides the VenvBackend in tests and even the backend provided in CLI.

I'm not exactly sure what backend you actually want to run it with so I'm not making a PR.
Also, just as a heads up, VenvBackend does not work on Travis (https://github.com/travis-ci/travis-ci/issues/8589, issue closed because it was stale, but AFAIK still not resolved)

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

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

はじめの一歩

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

調査の方向性

pytest.ini と失敗している test_arca_render から始め、設定された backend が VenvBackend と CLI 設定をどのように上書きするかを追跡します。テストで使用すべき backend を maintainer に確認します。意図した backend が一貫して選択され、test_arca_render が意図しない現在の環境の backend に対して実行されなくなれば完了です。

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

評価

技術スタック
python
領域
backend, testing
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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