]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: s/setup(self)/setup_method(self)/ 49508/head
authorKefu Chai <tchaikov@gmail.com>
Sun, 18 Dec 2022 12:16:02 +0000 (20:16 +0800)
committerMatan Breizman <mbreizma@redhat.com>
Mon, 19 Dec 2022 14:39:07 +0000 (14:39 +0000)
commit8cc8d48b1149b69117cc047826c3375c2c9c0804
tree83ec5c9090ceab5619b8828a7cc5628709b3a730
parentc416a3c44595e4269dce9fbb4d6043119421cf5e
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>
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