Pytestでテストを書く
pytest
assertなどの表示がunittestよりも丁寧
ディレクトリ
参考
アプリ自体はすべてgym_mdなどに入れてしまう (main.pyなどをプロジェクト自体においてはいけない)
そして,testsなどのテストディレクトリを作る
code: txt Tue Jan 5
.
├── MANIFEST.in
├── Pipfile
├── Pipfile.lock
├── README.md
├── build
│ ├── bdist.macosx-10.15-x86_64
│ └── lib
│ └── gym_md
├── dist
│ └── gym_md-0.0.4-py3-none-any.whl
├── gym_md
│ ├── __init__.py
│ ├── __pycache__
│ │ └── __init__.cpython-38.pyc
│ └── envs
│ ├── __init__.py
│ ├── __pycache__
│ ├── agent
│ ├── grid.py
│ ├── md_env.py
│ ├── point.py
│ ├── props
│ ├── setting.py
│ ├── singleton.py
│ ├── stages
│ └── tiles
├── gym_md.egg-info
│ ├── PKG-INFO
│ ├── SOURCES.txt
│ ├── dependency_links.txt
│ ├── requires.txt
│ └── top_level.txt
├── setup.py
├── tests
│ ├── __init__.py
│ └── envs
│ ├── __init__.py
│ └── test_grid.py
├── tox.ini
└── upload.sh
https://gyazo.com/9bff09d9573fc1aa330dfb5d7e08eccc