Pytest-lockable

Latest version: v0.10.0

Safety actively analyzes 682404 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

0.7.2

0.7.1

Just cleanup setup scripts

0.7.0

* update py-lockable (15)

This introduce **breaking change**:
`lockable` fixture `auto_lock()` contextmanager yields `Allocation` instance instead of dictionary.


Example:

Originally:

def test_example2(lockable):
""" Simple test """
with lockable.auto_lock({}) as resource_info:
print(f'Testing with resource2: {resource_info}')


Now should be:

def test_example2(lockable):
""" Simple test """
with lockable.auto_lock({}) as allocation:
print(f'Testing with resource2: {allocation.resource_info}')

0.6.1

Just cleanup dependencies:
https://github.com/jupe/py-lockable/compare/v0.3.0..v0.3.1

0.6.0

new locking module causes some breaking changes that is affected here as well.

Breaking changes:
* `lockable` fixture returns object that contains API's:
* `lock` -> `Allocation`
* `auto_lock` -contextmanager -> yields resource info as `dict`
* `unlock`

0.5.0

new dependency: [lockable](https://pypi.org/project/lockable/)

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.