]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test/pybind/rbd: convert from nose to pytest
authorCasey Bodley <cbodley@redhat.com>
Tue, 20 Jun 2023 18:46:40 +0000 (14:46 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 20 Jul 2023 18:58:20 +0000 (14:58 -0400)
commit4450a698add40badeabbc34c750d8a52bc348d89
tree44c9343fce33b665ef86fde42fb06e509a98d0fd
parent7dd5a73a82a4636c8f4cdc5ee9526fc850f72a10
test/pybind/rbd: convert from nose to pytest

* use fixtures for temporary images and groups
* use pytest.skip instead of nose.SkipTest
* replace setUp/tearDown with setup/teardown_method
* add @pytest.mark.skip_if_crimson
* replace nose assertions

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit af04457a43921bcac85b572098245a4c8a79452e)
qa/suites/crimson-rados/rbd/tasks/rbd_python_api_tests.yaml
qa/suites/crimson-rados/rbd/tasks/rbd_python_api_tests_old_format.yaml
qa/workunits/rbd/test_librbd_python.sh
src/test/pybind/assertions.py [new file with mode: 0644]
src/test/pybind/pytest.ini [new file with mode: 0644]
src/test/pybind/test_rbd.py