Skip to main content

Pytest plugin for managing test artifacts

Project description

pytest-artifact

PyPI version Python versions See Build Status on GitHub Actions

Pytest plugin for managing test artifacts

Installation

You can install "pytest-artifact" via pip from PyPI:

pip install pytest-artifact

Usage

import time
import matplotlib.pyplot as plt

def test_benchmark(artifacts):
    times = range(1, 101, 10)
    elapsed = []
    for t in times:
        start_time = time.perf_counter()

        sleep(t)

        end_time = time.perf_counter()
        elapsed.append(end_time - start_time)

    plt.scatter(times, elapsed)
    plt.savefig(artifacts.dir / 'benchmark.png')

Contributing

Contributions are very welcome.

License

Distributed under the terms of the MIT license, "pytest-artifact" is free and open source software

Issues

If you encounter any problems, please file an issue along with a detailed description.

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_artifact-0.2.0.post1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

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

pytest_artifact-0.2.0.post1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pytest_artifact-0.2.0.post1.tar.gz.

File metadata

  • Download URL: pytest_artifact-0.2.0.post1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytest_artifact-0.2.0.post1.tar.gz
Algorithm Hash digest
SHA256 3d8ab488d292aabe929f125f10abeff6eee24ab018406c6b593b7382625e69f2
MD5 b2972b786d16b36d3403e1400e204389
BLAKE2b-256 a013ae5a5e464a211d45b2965620c26b6e38cd6ce73d3369492763f70608e14a

See more details on using hashes here.

File details

Details for the file pytest_artifact-0.2.0.post1-py3-none-any.whl.

File metadata

  • Download URL: pytest_artifact-0.2.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pytest_artifact-0.2.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 d1cbf4c4b18ad8b5b1f04538ca7c0af5a805723106f783e85d0e1b2b436f2129
MD5 9c85bb51ecb3ed9b8368582af9156ce3
BLAKE2b-256 383088a1f6176cfe80900c0d5abd3ecfd324a11f395745118647c25554e3439e

See more details on using hashes here.

Supported by

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