Skip to main content

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="…"
ZULIP_ONLY_ON_FAILED=1

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/*

Release files for pytest-zulip 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-zulip 0.2.1
File Size Uploaded
pytest-zulip-0.2.1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-zulip 0.2.1
File Interpreter ABI Platform
pytest_zulip-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / pytest-zulip-0.2.1.tar.gz

Download URL pytest-zulip-0.2.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
12b2691a9676b99f92e897b2841812ec44004d34176c1675b1092b1f0c6076b0
BLAKE2b-256 checksum
How to use checksums
418d6b7bdf09818410b893802d6d65e8f75cd9f9d56e1433fc1d6cc21091285f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.3

Release files / pytest_zulip-0.2.1-py3-none-any.whl

Download URL pytest_zulip-0.2.1-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
819be8cc1938c53a39aa93ee3f0fc88197f2e1324a4606464aceb0741c2a88ae
BLAKE2b-256 checksum
How to use checksums
4fe5ad61e55ca2332d545b587205cb8101826e5e489d4de56de134c8ca73f5ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.3

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page