文件
.github
Tests
debian
depends
docs
src
winbuild
.travis.yml
CHANGES.rst
LICENSE
MANIFEST.in
Makefile
PKG-INFO
README.rst
RELEASING.md
requirements.txt
selftest.py
setup.cfg
setup.py
tox.ini
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Pillow Tests

Test scripts are named test_xxx.py and use the unittest module. A base class and helper functions can be found in helper.py.

Dependencies

Install:

pip install pytest pytest-cov

Execution

To run an individual test:

pytest Tests/test_image.py

Or:

pytest -k test_image.py

Run all the tests from the root of the Pillow source distribution:

pytest

Or with coverage:

pytest --cov PIL --cov Tests --cov-report term
coverage html
open htmlcov/index.html
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化