Created
February 24, 2023 16:38
-
-
Save Johnetordoff/4d6d49506220d09b2556d808733ba3b6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=================================== FAILURES =================================== | |
______________ TestNodeRegistrationSerializer.test_serialization _______________ | |
api_tests/nodes/serializers/test_serializers.py:145: in test_serialization | |
registration = RegistrationFactory(creator=user) | |
/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/factory/base.py:46: in __call__ | |
return cls.create(**kwargs) | |
/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/factory/base.py:563: in create | |
return cls._generate(enums.CREATE_STRATEGY, kwargs) | |
/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/factory/base.py:500: in _generate | |
return step.build() | |
/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/factory/builder.py:279: in build | |
kwargs=kwargs, | |
/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/site-packages/factory/base.py:314: in instantiate | |
return self.factory._create(model, *args, **kwargs) | |
osf_tests/factories.py:455: in _create | |
add_approval_step(reg) | |
osf_tests/factories.py:448: in add_approval_step | |
reg.require_approval(reg.creator) | |
osf/models/registrations.py:453: in require_approval | |
approval = self._initiate_approval(user, notify_initiator_on_complete) | |
osf/models/registrations.py:443: in _initiate_approval | |
self.registration_approval.add_authorizer(admin, node=node) | |
osf/models/sanctions.py:438: in add_authorizer | |
**kwargs) | |
osf/models/sanctions.py:278: in add_authorizer | |
'action': 'approve_{}'.format(self.SHORT_NAME) | |
osf/utils/tokens/__init__.py:92: in encode | |
algorithm=settings.JWT_ALGORITHM | |
E AttributeError: 'str' object has no attribute 'decode' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment