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
Links
Project home page: |
|||||
Issue tracker: |
|||||
Download: |
|||||
Documentation: |
Project details
Release history Release notifications | RSS feed
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.2.tar.gz
(8.3 kB
view details)
File details
Details for the file pytest-echo-1.2.tar.gz
.
File metadata
- Download URL: pytest-echo-1.2.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a3dcfe53f8f915e0b7128f16edf14af63e94473b8de491198846321125f3f251 |
|
MD5 | 446ea8740cc687e2ed045482c65ff0c8 |
|
BLAKE2b-256 | 24023ef79dd145bab1d94815091d0cde63efa772bc46e81b3c11c5d1effe63fa |