Better
Project description
Installation
pytest-tipsi-testing is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 3.5+.
$ pip install pytest-tipsi-testing
License
pytest-tipsi-testing is distributed under the terms of the MIT License.
Motivation and features
We want to make fixtures more predictable in pytest. So this plugin ensures that only loaded fixtures will be available when test is running.
Currently pytest allows fixtures with bigger scopes (session, module and etc.) to be instantiated event if test doesn’t directly require them. This may cause some troubles in several cases, for example if you wan’t to create some kind of cache in bigger fixture.
This means that all not required fixtures will be finished before test is started: even with bigger scope. So if you want to have some fixtures always awailable (eg. docker_start fixture with session scope) - you should make it autoused.
Usecase
In conjunction with pytest-tipsi-django you can make fixtures on different level than scope and share the same database state across different tests. It’s quit helpful when you perform complex and long database setup and want to have small and readable test cases.
Please see pytest-tipsi-django documentation for more detailed description.
Fixtures
vprint
Print that works only when verbose mode is enabled -v.
Note: you should add -s to see the output.
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
Built Distribution
Hashes for pytest-tipsi-testing-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3395c311abd64e2993c03851b592624e69b7d001dcdb83e81c4553e734377430 |
|
MD5 | 47ad36101439cdf43e67973695e33876 |
|
BLAKE2b-256 | e3199e0fde039009b8b44eed99475b8326dd85681a8f201bc1ecdf339b8c5c6f |
Hashes for pytest_tipsi_testing-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a838a7ade1d57fd0810335d259bd25fc0ac3996e5edc3351268414a7be2277d |
|
MD5 | 8a60a28214b75f210a3d4f3378ed7832 |
|
BLAKE2b-256 | 809e2ebcf1895ca7f866eb766c75e52df21b8af5086ef01c4338290476a2202f |