]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: s/setup(self)/setup_method(self)/
authorKefu Chai <tchaikov@gmail.com>
Sun, 18 Dec 2022 12:16:02 +0000 (20:16 +0800)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 22 Dec 2022 10:59:53 +0000 (11:59 +0100)
commitb00d05c94818dc76d122d5e1cffbd6fbbcd28aff
tree5209159ba0eb23a2a957c3fdfb3283ef4d106f88
parent53467fd637db88d724a58c30b4040f3fd95d795f
pybind/mgr: s/setup(self)/setup_method(self)/

avoid pytest warnings like:

4: pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_one_meta_three_bulk
4:   /home/kefu/dev/ceph/src/pybind/mgr/.tox/py3/lib/python3.10/site-packages/_pytest/fixtures.py:900: PytestRemovedIn8Warning: Support for nose tests is deprecated and will be removed in a future release.
4:   pg_autoscaler/tests/test_cal_final_pg_target.py::TestPgAutoscaler::test_even_pools_one_meta_three_bulk is using nose-specific method: `setup(self)`
4:   To remove this warning, rename it to `setup_method(self)`
4:   See docs: https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose
4:     fixture_result = next(generator)

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
(cherry picked from commit 5878b9486acd7831c6c795453c7f2a9a138261c8)
src/pybind/mgr/pg_autoscaler/tests/test_cal_final_pg_target.py
src/pybind/mgr/pg_autoscaler/tests/test_overlapping_roots.py
src/pybind/mgr/progress/test_progress.py