args = ()
keywargs = {'swh_scheduler_celery_app': <Celery celery.tests at 0x7f7c83990cc0>, 'swh_scheduler_celery_worker': <Worker: gen351@18dfb49a8872 (running)>}
extra_args = [], entered_patchers = []
exc_info = (<class 'AttributeError'>, AttributeError("<module 'swh.lister.bitbucket.tasks' from '/var/lib/jenkins/workspace/DLS/t.../swh/lister/bitbucket/tasks.py'> does not have the attribute 'BitBucketLister'"), <traceback object at 0x7f7c80ca0208>)
patching = <unittest.mock._patch object at 0x7f7c818fff28>
@wraps(func)
def patched(*args, **keywargs):
extra_args = []
entered_patchers = []
exc_info = tuple()
try:
for patching in patched.patchings:
> arg = patching.__enter__()
/usr/lib/python3.7/unittest/mock.py:1196:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.7/unittest/mock.py:1268: in __enter__
original, local = self.get_original()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <unittest.mock._patch object at 0x7f7c818fff28>
def get_original(self):
target = self.getter()
name = self.attribute
original = DEFAULT
local = False
try:
original = target.__dict__[name]
except (AttributeError, KeyError):
original = getattr(target, name, DEFAULT)
else:
local = True
if name in _builtins and isinstance(target, ModuleType):
self.create = True
if not self.create and original is DEFAULT:
raise AttributeError(
> "%s does not have the attribute %r" % (target, name)
)
E AttributeError: <module 'swh.lister.bitbucket.tasks' from '/var/lib/jenkins/workspace/DLS/tests-on-diff/.tox/py3/lib/python3.7/site-packages/swh/lister/bitbucket/tasks.py'> does not have the attribute 'BitBucketLister'
/usr/lib/python3.7/unittest/mock.py:1242: AttributeError
TEST RESULT
TEST RESULT
- Run At
- Jan 12 2021, 5:59 PM