You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.
__________ ERROR collecting tests/mynumbercard_data/test_download.py ___________
ImportError while importing test module '.../tests/mynumbercard_data/test_download.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/mynumbercard_data/test_download.py:10: in <module>
from mynumbercard_data import download
E ImportError: cannot import name 'download' from 'mynumbercard_data' (unknown location)
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
#31 をファイル単位で進めていきます。
download.py は
mynumbercard_data
の下のモジュールには依存しないので、テストコードを書く量は少ないと見積もり、選択しました。テスト環境の設定と合わせて実施します
if __name__ == "__main__":
に続くブロックを関数化してテスト追加--all
オプションを指定The text was updated successfully, but these errors were encountered: