]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: convert test_mon_crush_location to use funkypatch fixture
authorJohn Mulligan <jmulligan@redhat.com>
Wed, 8 Nov 2023 19:31:12 +0000 (14:31 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 30 Nov 2023 21:55:59 +0000 (16:55 -0500)
commitf25048f876b10705077b8c661469558d25be72f3
treebce72af07563101abbcced1c643758d2de9f32f0
parent40206912a4752ec7eae91a0948797a8cab54b93d
cephadm: convert test_mon_crush_location to use funkypatch fixture

The test_mon_crush_location test always seems to have me tinkering
with it during refactoring. Re-do the fixtures to use funkpatch instead
of mock.patch and normal monkeypatch. This looks nicer (IMO) and should
avoid having to frequently mess with it when moving functions during future
refactoring.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
src/cephadm/tests/test_cephadm.py