mirror of
https://github.com/ceph/ceph
synced 2024-12-23 20:03:56 +00:00
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:
parent
77cb1fed0c
commit
3d7516f8da
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user