]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: update argparse help output assertions for python compatibility 67047/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Thu, 22 Jan 2026 14:38:13 +0000 (14:38 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Thu, 22 Jan 2026 15:09:54 +0000 (16:09 +0100)
commitaa2898c94a13eb2850ba918a76d4d3607951ba03
treeb3bf0eaedeb8d4fc1ad70ecc39a8580f87c8c549
parentf247b4e822968275a23ff6919f687e008f1f5109
ceph-volume: update argparse help output assertions for python compatibility

This commit updates test assertions to be more flexible about
argparse help output format. It replaces checks for 'optional
arguments' and 'positional arguments' with checks for 'positional'
and help flags ('-h' or '--help'), which works across different
python versions where argparse output format may differ.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/tests/devices/lvm/test_prepare.py
src/ceph-volume/ceph_volume/tests/devices/test_zap.py
src/ceph-volume/ceph_volume/tests/util/test_device.py