Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.0.0-beta.1
-
None
-
1
-
SDK1: GA and Priority List
Description
vs 6.5 I see:
======================================================================
|
ERROR: test_get_all_groups (couchbase_tests.test_sync.transplant_class.<locals>.C)
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/tests_v3/cases/usermgmt_t.py", line 21, in wrap
|
func(self, *args, **kwargs)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/tests_v3/cases/usermgmt_t.py", line 139, in test_get_all_groups
|
self.assertEqual([Group('qweqwe', roles={RawRole('admin', None)})], all_groups)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/management/users.py", line 647, in __init__
|
super(Group,self).__init__(kwargs)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase_core/__init__.py", line 202, in __init__
|
self._raw_json = deepcopy(self.defaults())
|
TypeError: 'dict' object is not callable
|
|
======================================================================
|
ERROR: test_groups (couchbase_tests.test_sync.transplant_class.<locals>.C)
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/tests_v3/cases/usermgmt_t.py", line 21, in wrap
|
func(self, *args, **kwargs)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/tests_v3/cases/usermgmt_t.py", line 127, in test_groups
|
fresh_group = Group(name='qweqwe', roles={Role.of(name='admin')})
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/management/users.py", line 647, in __init__
|
super(Group,self).__init__(kwargs)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase_core/__init__.py", line 202, in __init__
|
self._raw_json = deepcopy(self.defaults())
|
TypeError: 'dict' object is not callable
|
|
======================================================================
|
ERROR: test_timeout (couchbase_tests.test_sync.transplant_class.<locals>.C)
|
----------------------------------------------------------------------
|
Traceback (most recent call last):
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/tests_v3/cases/usermgmt_t.py", line 21, in wrap
|
func(self, *args, **kwargs)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/tests_v3/cases/usermgmt_t.py", line 143, in test_timeout
|
self.um.get_all_groups(timeout=0.1)
|
File "<boltons.funcutils.FunctionBuilder-40>", line 2, in wrapped
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase_core/exceptions.py", line 1007, in wrapped
|
return func(*args, **kwargs)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase_core/exceptions.py", line 975, in wrapped
|
return func(*args, **kwargs)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/management/users.py", line 240, in get_all_groups
|
**forward_args(kwargs, *options))
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/options.py", line 75, in forward_args
|
end_options[out_k] = out_f(v)
|
File "/Users/davidkelly/projects/gerrit/couchbase-python-client/couchbase/options.py", line 93, in timedelta_as_microseconds
|
return int(duration.total_seconds()*10e6)
|
AttributeError: 'float' object has no attribute 'total_seconds'
|
|
=
|
There are 2 problems here, but both are worth doing in one go.