Skip to main content

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

Project description

Print environment variables, package version and django settings.

Useful in the continuous integration to dump env configuration.

Install

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 attributes

$ py.test --echo-attr=django.conf.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.1.tar.gz (8.2 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pytest-echo-1.1.tar.gz
Algorithm Hash digest
SHA256 21f22eeb2b4795d73ce9dcc61150ccdc38f387b19324b75a9e621d38bc39333d
MD5 25c6c4671bd876e62eed956fd24e521e
BLAKE2b-256 669235059f1fa766308fe58c6039f00859995532a7961db97cc5e41fb7711abe

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