Skip to main content

pytest plugin with mechanisms for echoing environment variables, package version and django settings

Project description

Echoing environment variables, package version and django settings

Usage

install via:

pip install pytest-echo

The plugin provides ability to print some extra information prior to run the tests.

Examples

Dump environment variables

$ py.test --echo-env=HOME
============================= test session starts =========================
platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python
HOME: /home/sax
plugins: echo, pydev, cov, cache, django

Dump package version

$ py.test --echo-version=pytest_echo
============================= test session starts =========================
platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python
pytest_echo: 0.1
plugins: echo, pydev, cov, cache, django

Dump django settings

$ py.test --echo-settings=DEBUG
============================= test session starts =========================
platform linux2 -- Python 2.7.4 -- py-1.4.22 -- pytest-2.6.0 -- /bin/python
DEBUG: False
plugins: echo, pydev, cov, cache, django

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-echo-1.0.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file pytest-echo-1.0.tar.gz.

File metadata

  • Download URL: pytest-echo-1.0.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pytest-echo-1.0.tar.gz
Algorithm Hash digest
SHA256 a054caf56a1638337d60cdf308f6df24eaee5fe261ea55768a5eb58d4375808c
MD5 d80d216efcacc44bcd617da740872ab9
BLAKE2b-256 59987a689e1bf3e13d89d91bdc3194dd9f0578872d5ac1630d39c06ed5b9bc28

See more details on using hashes here.

Supported by

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