pytest-lockable

pytest plugin for lockable resources

MIT License

Downloads
14.1K
Stars
1
Committers
4
pytest-lockable - v0.10.0 drop py3.7 support

Published by jupe 9 months ago

What's Changed

Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.9.3...v0.10.0

pytest-lockable - accept new py-lockable

Published by jupe 12 months ago

What's Changed

Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.9.2...v0.9.3

pytest-lockable - v0.9.2 Latest Release

Published by jupe about 1 year ago

pytest-lockable - Update py-lockable dependency

Published by juhhov over 2 years ago

What's Changed

Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.9.0...v0.9.1

pytest-lockable - BREAKING CHANGE: add pytest entry_point

Published by jupe over 2 years ago

What's Changed

no need to enable plugin anymore from conftest.py

Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.8.3...v0.9.0

pytest-lockable - Loosen lockable dependency

Published by juhhov almost 3 years ago

pytest-lockable - update lockable dependency

Published by jupe almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.8.1...v0.8.2

pytest-lockable - drop autouse from fixtures

Published by jupe almost 3 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/jupe/pytest-lockable/compare/v0.8.0...v0.8.1

pytest-lockable - lockable_resource fixture yields now Allocation object

Published by jupe about 3 years ago

What's Changed

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

pytest-lockable - update dependency: py-lockable

Published by jupe about 3 years ago

What's Changed

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

pytest-lockable - fix allocation_timeout argument

Published by jupe about 3 years ago

pytest-lockable - Update lockable dependency

Published by juhhov about 3 years ago

Use lockable with HTTP resources support (#19)

pytest-lockable - update lockable dependency

Published by jupe over 3 years ago

pytest-lockable - Cleanup project

Published by jupe over 3 years ago

Just cleanup setup scripts

pytest-lockable - auto_lock returns Allocation object

Published by jupe over 3 years ago

  • 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 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}')
pytest-lockable - cleanup and update dependencies

Published by jupe over 3 years ago

pytest-lockable - update locking module

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
pytest-lockable - extract core functionality to separate library

Published by jupe about 4 years ago

new dependency: lockable

pytest-lockable - Custom allocation

Published by jupe over 4 years ago

New feature:
#9 allow to allocate any lockable during test case

pytest-lockable - pytest-metadata integration

Published by jupe over 4 years ago

Collect locked resource info to metadata when pytest-metadata is installed.