Bust functools.lru_cache when running pytest to avoid test pollution
Project description
Caching with functools.lru_cache is great for performance. It works so well that it’ll even speed up your unit test runs. All you need to sacrifice in return is test isolation and your sanity.
Imagine, you mock some things out and a function caches those results. On your next test run, it doesn’t matter what you mock, the results are already cached. Now trying running those two test out-of-order sequence and tell me how it goes.
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 Distributions
Close
Hashes for pytest-antilru-0.2.0.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdc52f93d7dbc28167824b25bb4a043b366f4ef16d08ae47736e8b6e49563cb0 |
|
MD5 | 94d75d2e31071c849f6d36561309e3ee |
|
BLAKE2b-256 | 35d25b8fdd3a95dd668a3a511e61ffb8dfeb63a0bb2861fcb476ad5f7796190c |
Close
Hashes for pytest_antilru-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b111c91c29400fc6f4910c9775d1c549e8a48d644e4006182ae09b51d70c3ddd |
|
MD5 | b64898b24b8db172cf6b87afd2278645 |
|
BLAKE2b-256 | 6212a0faeca7202f968851d16005a9eb56ee9a083947c3d6b6cae2ddcbc20250 |
Close
Hashes for pytest_antilru-0.2.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 044f5f68f2100c40ec0cf961e2888fc1d78e52eb7f3dd2b0c8b7a79920679d2e |
|
MD5 | adcff8caf02116d9da0b3a03fd5fa4bb |
|
BLAKE2b-256 | fdf0e4c5b57017890272d7ff0afbffe8686e82214b1bd54b3cde71cc1e06a934 |