mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
test_ipalib.test_crud: Don't use a string in takes_options
Options should be Param subclasses.
This commit is contained in:
@@ -78,7 +78,7 @@ class test_Create(CrudChecker):
|
||||
for param in api.Method.user_verb.options():
|
||||
if param.name != 'version':
|
||||
assert param.required is True
|
||||
api = self.get_api(options=('extra?',))
|
||||
api = self.get_api(options=(Str('extra?'),))
|
||||
assert list(api.Method.user_verb.options) == \
|
||||
['givenname', 'sn', 'initials', 'extra', 'all', 'raw', 'version']
|
||||
assert api.Method.user_verb.options.extra.required is False
|
||||
|
||||
Reference in New Issue
Block a user