pulp / Pulp-2-Tests

:warning: ⛔️ Pulp2 is EOL as of November 30 2022, for more info visit this link https://pulpproject.org/2022/09/19/pulp-2-eol/. ⛔️ Functional tests for Pulp 2.
https://pulp-2-tests.readthedocs.io/
1 stars 11 forks source link

Add pytest marker to tests related to recursive_conservative #208

Closed nixocio closed 5 years ago

nixocio commented 5 years ago

Add marker to certain tests related to recursive_conservative feature. Once more tests are identified as part of this feature, this marker can be applied.

This will allow run a subset of tests when like:

pytest -v -m recursive_conservative

Moreover add pytest as dependency. Pin pytest version due to changes in the order of tests running - mainly related to inheritance. Tests inherinted from the BaseAPICrudTestCase are running the BaseAPICrudTestCase as a test itself. This behaviour is not observed in pytest version 4.1.0.

See: https://github.com/pulp/pulp-ci/pull/638

nixocio commented 5 years ago

Tested again Pulp 2.20 stable.

-- Docs: https://docs.pytest.org/en/latest/warnings.html ======================== 40 passed, 6 skipped, 610 deselected, 45 warnings in 516.96 secon

bherrin3 commented 5 years ago

Making @dralley aware of this, as I was using him for the guinea pig for this implementation.

Once this is merged, @dralley , give it a shot and give us some feedback.

dralley commented 5 years ago

I just tested the branch and it seems really useful, great work @kersommoura