pytest-html-nova-act
pytest-html-nova-act is a pytest plugin that integrates HTML test reporting with Amazon Nova Act SDK capabilities. This plugin enhances pytest-html reports by adding Nova Act-specific features and metadata.
Usage
Requirements
- Python 3.11+
- pytest 8.0+
- pytest-html 4.0+
- nova-act 1.0+
- Nova Act API key
- Visit Nova Act home page to generate your API key and set it to the
NOVA_ACT_API_KEYenvironment variable
- Visit Nova Act home page to generate your API key and set it to the
Installation
Install via pip:
pip install nova-act pytest pytest-html pytest-html-nova-act
Configuration
Add to pytest.ini:
[pytest]
addopts = --html=reports/report.html --self-contained-html --add-nova-act-report
Pytest Example
The below sample code shows how to create a pytest fixture which instantiates the Nova Act client, starts it, and stops it after the test completes. It also includes an example test.
import pytest
from nova_act import NovaAct, BOOL_SCHEMA
@pytest.fixture()
def nova_session():
nova = NovaAct(
starting_page="https://nova.amazon.com/act",
headless=True
)
nova.start()
yield nova
nova.stop()
def test_example(nova_session):
nova_session.act("Click learn more")
expected = True
result = nova_session.act("Am I on the Amazon AGI Labs page?", schema=BOOL_SCHEMA)
actual = result.matches_schema and result.parsed_response
assert expected == actual
Usage
pytest
Running the pytest command in a valid pytest project and using the pytest configuration and sample code mentioned above will result in:
- Run tests using Nova Act
- Embed Nova Act SDK logs and screenshots in the
pytest-htmlreport file inreports/report.html
Resources
Metadata
Release files for pytest-html-nova-act 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_html_nova_act-1.0.3.tar.gz | 10.5 kB | Without provenance | Details for pytest_html_nova_act-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_html_nova_act-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for pytest_html_nova_act-1.0.3-py3-none-any.whl |
Total release size: 22.1 kB
Release files / pytest_html_nova_act-1.0.3.tar.gz
| Download URL | pytest_html_nova_act-1.0.3.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4fc87044218cc997064a4d14d65e934c5d71dd4cc2aecdb70418c2f06cdcff58
|
|
BLAKE2b-256 checksum How to use checksums |
42a65753acccabcf9022901bc8e354cd5859d5794e721c137b9aa57d1447abd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / pytest_html_nova_act-1.0.3-py3-none-any.whl
| Download URL | pytest_html_nova_act-1.0.3-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bff287ca66bc8b6148452d7f41d4bc0cd1576d78ded0fa53af1d1266885a61b
|
|
BLAKE2b-256 checksum How to use checksums |
d8eb9f4926d90314ef98c2a05c4369f7b1abe8d1e5c0065d0c24d90600711509
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for pytest-html-nova-act 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.