pytest plugin for lockable resources
MIT License
Published by jupe 9 months ago
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.9.3...v0.10.0
Published by jupe 12 months ago
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.9.2...v0.9.3
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.9.1...v0.9.2
Published by juhhov over 2 years ago
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.9.0...v0.9.1
Published by jupe over 2 years ago
no need to enable plugin anymore from conftest.py
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.8.3...v0.9.0
Published by juhhov almost 3 years ago
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.8.2...v0.8.3
Published by jupe almost 3 years ago
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.8.1...v0.8.2
Published by jupe almost 3 years ago
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.8.0...v0.8.1
Published by jupe about 3 years ago
This is potential breaking change! Allocation -object contains get
-method that is backward compatible with previous yielded dict:get()
.
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.7.5...v0.8.0
Published by jupe about 3 years ago
This makes possible to get queue duration and allocation duration
Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.7.4...v0.7.5
Published by jupe about 3 years ago
Published by juhhov about 3 years ago
Use lockable with HTTP resources support (#19)
Published by jupe over 3 years ago
Published by jupe over 3 years ago
Just cleanup setup scripts
Published by jupe over 3 years ago
This introduce breaking change:
lockable
fixture auto_lock()
contextmanager yields Allocation
instance instead of dictionary.
Originally:
def test_example2(lockable):
""" Simple test """
with lockable.auto_lock({}) as resource_info:
print(f'Testing with resource#2: {resource_info}')
Now should be:
def test_example2(lockable):
""" Simple test """
with lockable.auto_lock({}) as allocation:
print(f'Testing with resource#2: {allocation.resource_info}')
Published by jupe over 3 years ago
Just cleanup dependencies:
https://github.com/jupe/py-lockable/compare/v0.3.0..v0.3.1
Published by jupe about 4 years ago
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
Published by jupe about 4 years ago
new dependency: lockable
Published by jupe over 4 years ago
New feature:
#9 allow to allocate any lockable during test case
Published by jupe over 4 years ago
Collect locked resource info to metadata when pytest-metadata
is installed.