Pytest report plugin for Squadcast
Project description
pytest-squadcast
Pytest report plugin for Squadcast
Allow to send incident on Squadcast product.
installation
pip install pytest-squadcast
Add option to send message
pytest --squadcast
Create payload via hook
def pytest_squadcast_create_payload(session: Session, exitstatus: Union[int, ExitCode]) -> dict:
reporter = session.config.pluginmanager.get_plugin('terminalreporter')
return {"data": {
"message": "This will be the incident message",
"description": "This will be the incident description",
"tags": {
"passed": str(reporter.stats.get('passed', [])),
"tagname2": "Tag value#2",
},
"status": "trigger",
},
"service": "0d2a4409625e05adbc1d81b3540ag89826bfa7cc",
}
Dev
Change version
edit
pytest_squadcast/__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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pytest-squadcast-0.1.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for pytest_squadcast-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17c6c43c99c01577669d7f1e8773d60c50b2e2743bac7aef30e81c1d1ab3e6c7 |
|
MD5 | b85596d9062e7c89c447d577db8db389 |
|
BLAKE2b-256 | 25af474368d79b4b65b3a55eebfa407bc57f8f948b285032f70a3b4f099a9da7 |