Skip to main content
PyPI version Python versions

JSON output for the --fixtures flag


This pytest plugin was generated with Cookiecutter along with @hackebrot’s cookiecutter-pytest-plugin template.

Features

This plugin takes the output generated when running pytest with the --fixtures flag, convert it into JSON format and stream it into a file.

Requirements

You must have Python, pip and pytest to use this plugin.

Installation

You can install “pytest-json-fixtures” via pip from PyPI:

$ pip install pytest-json-fixtures

Usage

Run the command below:

$ pytest --json-fixtures

The same result you would get with pytest --fixtures will be output in JSON in a fixtures.json file, the default file name.

If you want the output on a different file, just add it after the flag:

$ pytest --json-fixtures output.json

Contributing

Contributions are very welcome.

License

Distributed under the terms of the MIT license, “pytest-json-fixtures” is free and open source software

Issues

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-json-fixtures-0.1.2.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

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

pytest_json_fixtures-0.1.2-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest-json-fixtures-0.1.2.tar.gz.

File metadata

  • Download URL: pytest-json-fixtures-0.1.2.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.10

File hashes

Hashes for pytest-json-fixtures-0.1.2.tar.gz
Algorithm Hash digest
SHA256 91af84c0f64bd0e6ba6f2f72023c5afb784ac66367d6923c480cd3b91e37eb67
MD5 b5d662ae4678c81103f6d2c5bfcf3a88
BLAKE2b-256 1e2334fa58849bc86aeb0f32effd7a5787d993d39f3cfd863262f94ba1f72087

See more details on using hashes here.

File details

Details for the file pytest_json_fixtures-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_json_fixtures-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe659f876058744da3505538e9b612f8af7c01c2e0a452033503ed369adb5b2
MD5 5982b1ba418da72be958c7785af1dac7
BLAKE2b-256 058d675ce7c6f2360b1657c753f31af5337b248736a6e156c5a9e20d02a90f6c

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 Sentry Error logging StatusPage Status page