test/pybind/test_ceph_argparse: decorate helper method with @nottest

otherwise nose tries to run it as a test as its name contains "test", like

E.
======================================================================
ERROR: Runs validate in different arg/kargs ways.
----------------------------------------------------------------------
TypeError: arg_kwarg_test() missing 3 required positional arguments: 'prefix', 'args', and 'sig'

Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
Kefu Chai 2021-06-09 11:24:37 +08:00
parent 77cb1fed0c
commit 3d7516f8da

View File

@ -17,7 +17,8 @@
from nose.tools import assert_equal, assert_raises, \
assert_not_in, assert_in, \
assert_regexp_matches
assert_regexp_matches, \
nottest
from unittest import TestCase
from ceph_argparse import validate_command, parse_json_funcsigs, validate, \
@ -1265,6 +1266,7 @@ class TestValidate(TestCase):
self.sig = parse_funcsig(self.prefix + self.args_dict)
@nottest
def arg_kwarg_test(self, prefix, args, sig, arg_type=0):
"""
Runs validate in different arg/kargs ways.