Skip to content

Instantly share code, notes, and snippets.

@Johnetordoff
Created February 24, 2023 16:40
Show Gist options
  • Save Johnetordoff/5e54856f3852ffff0f3902a19200d326 to your computer and use it in GitHub Desktop.
Save Johnetordoff/5e54856f3852ffff0f3902a19200d326 to your computer and use it in GitHub Desktop.
_____________________ ERROR collecting tests/test_auth.py ______________________
ImportError while importing test module '/home/runner/work/osf.io/osf.io/tests/test_auth.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/test_auth.py:11: in <module>
from werkzeug.wrappers import BaseResponse
E ImportError: cannot import name 'BaseResponse' from 'werkzeug.wrappers' (/opt/hostedtoolcache/Python/3.11.2/x64/lib/python3.11/site-packages/werkzeug/wrappers/__init__.py)
_________ ERROR collecting tests/test_registrations/test_embargoes.py __________
tests/test_registrations/test_embargoes.py:34: in <module>
DUMMY_TOKEN = tokens.encode({
osf/utils/tokens/__init__.py:93: in encode
).decode()
E AttributeError: 'str' object has no attribute 'decode'
___ ERROR collecting tests/test_registrations/test_registration_approvals.py ___
tests/test_registrations/test_registration_approvals.py:28: in <module>
DUMMY_TOKEN = tokens.encode({
osf/utils/tokens/__init__.py:93: in encode
).decode()
E AttributeError: 'str' object has no attribute 'decode'
________ ERROR collecting tests/test_registrations/test_review_flows.py ________
tests/test_registrations/test_review_flows.py:25: in <module>
DUMMY_TOKEN = tokens.encode({
osf/utils/tokens/__init__.py:93: in encode
).decode()
E AttributeError: 'str' object has no attribute 'decode'
=============================== warnings summary ===============================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment