Testresources

Latest version: v2.0.1

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

Scan your dependencies

0.2.4

CHANGES
~~~~~~~

* Relicenced to BSD / Apache2.0 with full agreement of contributors.

IMPROVEMENTS
~~~~~~~~~~~~

* Substantially improved documentation in README. (mbp)

* Rename TestResource to TestResourceManager leaving TestResource as an alias.
Fixes bug #520769.

* Test sorting no longer performs N! work on tests that can never benefit from
order optimisations (when resources are not shared an arbitrary order is
sufficient). Partial fix for bug #522338.

* Test sorting now uses a heuristic on each partition to get a sort that is
no worse than twice the optimal number of setup/teardown operations and is
fast to calculate. Fixes bug #522338

0.2.3

IMPROVEMENTS
~~~~~~~~~~~~~

* Distribute doc/*.py in the source tarball.

* New helper testresources.GenericResource which should remove the need for
much boilerplate when using testresources with existing test fixtures.

API CHANGES
~~~~~~~~~~~

* New public functions testresources.setUpResources and
testresources.tearDownResources for folk that cannot easily use
ResourcedTestCase. Fixes bug #504146.

0.2.2

* OptimisingTestSuite.addTest was not unpacking OptimisingTestSuite instances.
When using testresources.TestLoader to load tests this was generating an
unoptimised layout, with each test in its own little suite, and no resource
sharing happening.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.