pulp / pulp-smash

A GPL-licensed Python library that facilitates integration testing of Pulp.
https://pulp-smash.readthedocs.io/
GNU General Public License v3.0
3 stars 44 forks source link

Add add_to_cleanup fixture #1283

Closed mdellweg closed 2 years ago

mdellweg commented 2 years ago

This fixture will collect references to pulp objects to be deleted after a test. It will attempt deletion in reversed order and await all tasks in parallel.

mdellweg commented 2 years ago

Rationale: In pulp container we create Distributions and namespaces by push operations, so we cannot use gen_object_with_cleanup there. Also we do not have unittest.TestCase.teardown() available anymore.