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

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.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_zulip-0.2.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest-zulip-0.2.1.tar.gz.

File metadata

  • Download URL: pytest-zulip-0.2.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.3

File hashes

Hashes for pytest-zulip-0.2.1.tar.gz
Algorithm Hash digest
SHA256 12b2691a9676b99f92e897b2841812ec44004d34176c1675b1092b1f0c6076b0
MD5 0758f62f91327755cf27ad97af30bacf
BLAKE2b-256 418d6b7bdf09818410b893802d6d65e8f75cd9f9d56e1433fc1d6cc21091285f

See more details on using hashes here.

File details

Details for the file pytest_zulip-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pytest_zulip-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.3

File hashes

Hashes for pytest_zulip-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 819be8cc1938c53a39aa93ee3f0fc88197f2e1324a4606464aceb0741c2a88ae
MD5 e0ee90813494586c656c794ef9953383
BLAKE2b-256 4fe5ad61e55ca2332d545b587205cb8101826e5e489d4de56de134c8ca73f5ab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2.0

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page