Pytest report plugin for Zulip
Project description
pytest-zulip
Pytest report plugin for Zulip
Allow to send notification on Zulip chat product.
installation
pip install pytest-zulip
Configure via env var
ZULIP_URL="https://x.zulipchat.com/api/v1/messages"
ZULIP_BOT_EMAIL_ADDRESS="bot@x.zulipchat.com"
ZULIP_BOT_API_KEY="API_KEY"
ZULIP_TOPIC="TOPIC"
ZULIP_STREAM="STREAM"
Optional:
ZULIP_ELLIPSIS_CHAR="…"
Add option to send message
pytest --notify-zulip
Modify content via hook
def pytest_zulip_create_content(session: Session, exitstatus: Union[int, ExitCode]) -> str:
reporter = session.config.pluginmanager.get_plugin('terminalreporter')
return str(reporter.stats.get('passed', []))
Dev
Change version
edit
pytest_zulip/__init__.py
commit
git commit -m "v0.1.0"
tag
git tag v0.1.0
Build package
python -m build
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-zulip-0.1.7.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for pytest_zulip-0.1.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb64c495b20cbf713f817e5bcd411f4bd30e44dc1a1dcb5a8a82f812176c1d41 |
|
MD5 | c933353899d2eb3cad0f7b93d0cca051 |
|
BLAKE2b-256 | 6722a02dfb91a74e4304e77e818d00872822e397fe6d6a4461fe3eed36f39d76 |