Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ServerRunTests:
- ```
- ----------------------- Проверка flake8 пройдена -----------------------
- ============================= test session starts ==============================
- platform linux -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /usr/local/bin/python
- django: settings: api_yamdb.settings (from env)
- rootdir: /app, inifile: pytest.ini, testpaths: tests/
- plugins: django-3.9.0
- collecting ... collected 31 items
- tests/test_01_users.py::Test01UserAPI::test_01_users_not_auth FAILED [ 3%]
- tests/test_01_users.py::Test01UserAPI::test_02_users_username_not_auth FAILED [ 6%]
- tests/test_01_users.py::Test01UserAPI::test_03_users_me_not_auth FAILED [ 9%]
- tests/test_01_users.py::Test01UserAPI::test_04_users_get_auth ERROR [ 12%]
- tests/test_01_users.py::Test01UserAPI::test_05_users_post_auth ERROR [ 16%]
- tests/test_01_users.py::Test01UserAPI::test_06_users_username_get_auth ERROR [ 19%]
- tests/test_01_users.py::Test01UserAPI::test_07_users_username_patch_auth ERROR [ 22%]
- tests/test_01_users.py::Test01UserAPI::test_08_users_username_delete_auth ERROR [ 25%]
- tests/test_01_users.py::Test01UserAPI::test_09_users_check_permissions ERROR [ 29%]
- tests/test_01_users.py::Test01UserAPI::test_10_users_me_get ERROR [ 32%]
- tests/test_01_users.py::Test01UserAPI::test_11_users_me_patch ERROR [ 35%]
- tests/test_02_category.py::Test02CategoryAPI::test_01_category_not_auth FAILED [ 38%]
- tests/test_02_category.py::Test02CategoryAPI::test_02_category ERROR [ 41%]
- tests/test_02_category.py::Test02CategoryAPI::test_03_category_delete ERROR [ 45%]
- tests/test_02_category.py::Test02CategoryAPI::test_04_category_check_permission ERROR [ 48%]
- tests/test_03_genre.py::Test03GenreAPI::test_01_genre_not_auth FAILED [ 51%]
- tests/test_03_genre.py::Test03GenreAPI::test_02_genre ERROR [ 54%]
- tests/test_03_genre.py::Test03GenreAPI::test_03_genres_delete ERROR [ 58%]
- tests/test_03_genre.py::Test03GenreAPI::test_04_genres_check_permission ERROR [ 61%]
- tests/test_04_title.py::Test04TitleAPI::test_01_title_not_auth FAILED [ 64%]
- tests/test_04_title.py::Test04TitleAPI::test_02_title ERROR [ 67%]
- tests/test_04_title.py::Test04TitleAPI::test_03_titles_detail ERROR [ 70%]
- tests/test_04_title.py::Test04TitleAPI::test_04_titles_check_permission ERROR [ 74%]
- tests/test_05_review.py::Test05ReviewAPI::test_01_review_not_auth ERROR [ 77%]
- tests/test_05_review.py::Test05ReviewAPI::test_02_review ERROR [ 80%]
- tests/test_05_review.py::Test05ReviewAPI::test_03_review_detail ERROR [ 83%]
- tests/test_05_review.py::Test05ReviewAPI::test_04_reviews_check_permission ERROR [ 87%]
- tests/test_06_comment.py::Test06CommentAPI::test_01_comment_not_auth ERROR [ 90%]
- tests/test_06_comment.py::Test06CommentAPI::test_02_comment ERROR [ 93%]
- tests/test_06_comment.py::Test06CommentAPI::test_03_review_detail ERROR [ 96%]
- tests/test_06_comment.py::Test06CommentAPI::test_04_comment_check_permission ERROR [100%]
- ==================================== ERRORS ====================================
- ____________ ERROR at setup of Test01UserAPI.test_04_users_get_auth ____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ___________ ERROR at setup of Test01UserAPI.test_05_users_post_auth ____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _______ ERROR at setup of Test01UserAPI.test_06_users_username_get_auth ________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ______ ERROR at setup of Test01UserAPI.test_07_users_username_patch_auth _______
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ______ ERROR at setup of Test01UserAPI.test_08_users_username_delete_auth ______
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _______ ERROR at setup of Test01UserAPI.test_09_users_check_permissions ________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _____________ ERROR at setup of Test01UserAPI.test_10_users_me_get _____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ____________ ERROR at setup of Test01UserAPI.test_11_users_me_patch ____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _____________ ERROR at setup of Test02CategoryAPI.test_02_category _____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _________ ERROR at setup of Test02CategoryAPI.test_03_category_delete __________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ____ ERROR at setup of Test02CategoryAPI.test_04_category_check_permission _____
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ________________ ERROR at setup of Test03GenreAPI.test_02_genre ________________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ____________ ERROR at setup of Test03GenreAPI.test_03_genres_delete ____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _______ ERROR at setup of Test03GenreAPI.test_04_genres_check_permission _______
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ________________ ERROR at setup of Test04TitleAPI.test_02_title ________________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ____________ ERROR at setup of Test04TitleAPI.test_03_titles_detail ____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _______ ERROR at setup of Test04TitleAPI.test_04_titles_check_permission _______
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- __________ ERROR at setup of Test05ReviewAPI.test_01_review_not_auth ___________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _______________ ERROR at setup of Test05ReviewAPI.test_02_review _______________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ___________ ERROR at setup of Test05ReviewAPI.test_03_review_detail ____________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ______ ERROR at setup of Test05ReviewAPI.test_04_reviews_check_permission ______
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _________ ERROR at setup of Test06CommentAPI.test_01_comment_not_auth __________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ______________ ERROR at setup of Test06CommentAPI.test_02_comment ______________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- ___________ ERROR at setup of Test06CommentAPI.test_03_review_detail ___________
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- _____ ERROR at setup of Test06CommentAPI.test_04_comment_check_permission ______
- E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
- =================================== FAILURES ===================================
- /usr/local/lib/python3.7/site-packages/rest_framework/settings.py:180: ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py).
- /usr/local/lib/python3.7/site-packages/rest_framework/settings.py:180: ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py).
- /usr/local/lib/python3.7/site-packages/rest_framework/settings.py:180: ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py).
- /usr/local/lib/python3.7/site-packages/rest_framework/settings.py:180: ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py).
- /usr/local/lib/python3.7/site-packages/rest_framework/settings.py:180: ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py).
- /usr/local/lib/python3.7/site-packages/rest_framework/settings.py:180: ImportError: Could not import 'rest_framework_simplejwt.authentication.JWTAuthentication' for API setting 'DEFAULT_AUTHENTICATION_CLASSES'. ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py).
- =========================== short test summary info ============================
- FAILED tests/test_01_users.py::Test01UserAPI::test_01_users_not_auth - Import...
- FAILED tests/test_01_users.py::Test01UserAPI::test_02_users_username_not_auth
- FAILED tests/test_01_users.py::Test01UserAPI::test_03_users_me_not_auth - Imp...
- FAILED tests/test_02_category.py::Test02CategoryAPI::test_01_category_not_auth
- FAILED tests/test_03_genre.py::Test03GenreAPI::test_01_genre_not_auth - Impor...
- FAILED tests/test_04_title.py::Test04TitleAPI::test_01_title_not_auth - Impor...
- ERROR tests/test_01_users.py::Test01UserAPI::test_04_users_get_auth - ImportE...
- ERROR tests/test_01_users.py::Test01UserAPI::test_05_users_post_auth - Import...
- ERROR tests/test_01_users.py::Test01UserAPI::test_06_users_username_get_auth
- ERROR tests/test_01_users.py::Test01UserAPI::test_07_users_username_patch_auth
- ERROR tests/test_01_users.py::Test01UserAPI::test_08_users_username_delete_auth
- ERROR tests/test_01_users.py::Test01UserAPI::test_09_users_check_permissions
- ERROR tests/test_01_users.py::Test01UserAPI::test_10_users_me_get - ImportErr...
- ERROR tests/test_01_users.py::Test01UserAPI::test_11_users_me_patch - ImportE...
- ERROR tests/test_02_category.py::Test02CategoryAPI::test_02_category - Import...
- ERROR tests/test_02_category.py::Test02CategoryAPI::test_03_category_delete
- ERROR tests/test_02_category.py::Test02CategoryAPI::test_04_category_check_permission
- ERROR tests/test_03_genre.py::Test03GenreAPI::test_02_genre - ImportError: ca...
- ERROR tests/test_03_genre.py::Test03GenreAPI::test_03_genres_delete - ImportE...
- ERROR tests/test_03_genre.py::Test03GenreAPI::test_04_genres_check_permission
- ERROR tests/test_04_title.py::Test04TitleAPI::test_02_title - ImportError: ca...
- ERROR tests/test_04_title.py::Test04TitleAPI::test_03_titles_detail - ImportE...
- ERROR tests/test_04_title.py::Test04TitleAPI::test_04_titles_check_permission
- ERROR tests/test_05_review.py::Test05ReviewAPI::test_01_review_not_auth - Imp...
- ERROR tests/test_05_review.py::Test05ReviewAPI::test_02_review - ImportError:...
- ERROR tests/test_05_review.py::Test05ReviewAPI::test_03_review_detail - Impor...
- ERROR tests/test_05_review.py::Test05ReviewAPI::test_04_reviews_check_permission
- ERROR tests/test_06_comment.py::Test06CommentAPI::test_01_comment_not_auth - ...
- ERROR tests/test_06_comment.py::Test06CommentAPI::test_02_comment - ImportErr...
- ERROR tests/test_06_comment.py::Test06CommentAPI::test_03_review_detail - Imp...
- ERROR tests/test_06_comment.py::Test06CommentAPI::test_04_comment_check_permission
- ========================= 6 failed, 25 errors in 9.67s =========================
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement