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 setup.py sdist bdist_wheel
pip install twine
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.2.0.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for pytest_zulip-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd54fd7ff59f1aca6c2bfbc94ff4ccc660c1dc17f8077e2fc04f0dd1819a811 |
|
MD5 | 0551c31f4c024a5db90f4fb1ba731d85 |
|
BLAKE2b-256 | 253dde09872f214af44893d28863a41f2ebbead67d4868f29494e2ca5b08e149 |