Advertisement
object_254

Untitled

Feb 20th, 2021
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.10 KB | None | 0 0
  1. ServerRunTests:
  2.  
  3. ```
  4. ----------------------- Проверка flake8 пройдена -----------------------
  5.  
  6. ============================= test session starts ==============================
  7. platform linux -- Python 3.7.4, pytest-5.4.1, py-1.8.1, pluggy-0.13.1 -- /usr/local/bin/python
  8. django: settings: api_yamdb.settings (from env)
  9. rootdir: /app, inifile: pytest.ini, testpaths: tests/
  10. plugins: django-3.9.0
  11. collecting ... collected 31 items
  12.  
  13. tests/test_01_users.py::Test01UserAPI::test_01_users_not_auth FAILED [ 3%]
  14. tests/test_01_users.py::Test01UserAPI::test_02_users_username_not_auth FAILED [ 6%]
  15. tests/test_01_users.py::Test01UserAPI::test_03_users_me_not_auth FAILED [ 9%]
  16. tests/test_01_users.py::Test01UserAPI::test_04_users_get_auth ERROR [ 12%]
  17. tests/test_01_users.py::Test01UserAPI::test_05_users_post_auth ERROR [ 16%]
  18. tests/test_01_users.py::Test01UserAPI::test_06_users_username_get_auth ERROR [ 19%]
  19. tests/test_01_users.py::Test01UserAPI::test_07_users_username_patch_auth ERROR [ 22%]
  20. tests/test_01_users.py::Test01UserAPI::test_08_users_username_delete_auth ERROR [ 25%]
  21. tests/test_01_users.py::Test01UserAPI::test_09_users_check_permissions ERROR [ 29%]
  22. tests/test_01_users.py::Test01UserAPI::test_10_users_me_get ERROR [ 32%]
  23. tests/test_01_users.py::Test01UserAPI::test_11_users_me_patch ERROR [ 35%]
  24. tests/test_02_category.py::Test02CategoryAPI::test_01_category_not_auth FAILED [ 38%]
  25. tests/test_02_category.py::Test02CategoryAPI::test_02_category ERROR [ 41%]
  26. tests/test_02_category.py::Test02CategoryAPI::test_03_category_delete ERROR [ 45%]
  27. tests/test_02_category.py::Test02CategoryAPI::test_04_category_check_permission ERROR [ 48%]
  28. tests/test_03_genre.py::Test03GenreAPI::test_01_genre_not_auth FAILED [ 51%]
  29. tests/test_03_genre.py::Test03GenreAPI::test_02_genre ERROR [ 54%]
  30. tests/test_03_genre.py::Test03GenreAPI::test_03_genres_delete ERROR [ 58%]
  31. tests/test_03_genre.py::Test03GenreAPI::test_04_genres_check_permission ERROR [ 61%]
  32. tests/test_04_title.py::Test04TitleAPI::test_01_title_not_auth FAILED [ 64%]
  33. tests/test_04_title.py::Test04TitleAPI::test_02_title ERROR [ 67%]
  34. tests/test_04_title.py::Test04TitleAPI::test_03_titles_detail ERROR [ 70%]
  35. tests/test_04_title.py::Test04TitleAPI::test_04_titles_check_permission ERROR [ 74%]
  36. tests/test_05_review.py::Test05ReviewAPI::test_01_review_not_auth ERROR [ 77%]
  37. tests/test_05_review.py::Test05ReviewAPI::test_02_review ERROR [ 80%]
  38. tests/test_05_review.py::Test05ReviewAPI::test_03_review_detail ERROR [ 83%]
  39. tests/test_05_review.py::Test05ReviewAPI::test_04_reviews_check_permission ERROR [ 87%]
  40. tests/test_06_comment.py::Test06CommentAPI::test_01_comment_not_auth ERROR [ 90%]
  41. tests/test_06_comment.py::Test06CommentAPI::test_02_comment ERROR [ 93%]
  42. tests/test_06_comment.py::Test06CommentAPI::test_03_review_detail ERROR [ 96%]
  43. tests/test_06_comment.py::Test06CommentAPI::test_04_comment_check_permission ERROR [100%]
  44.  
  45. ==================================== ERRORS ====================================
  46. ____________ ERROR at setup of Test01UserAPI.test_04_users_get_auth ____________
  47. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  48. ___________ ERROR at setup of Test01UserAPI.test_05_users_post_auth ____________
  49. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  50. _______ ERROR at setup of Test01UserAPI.test_06_users_username_get_auth ________
  51. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  52. ______ ERROR at setup of Test01UserAPI.test_07_users_username_patch_auth _______
  53. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  54. ______ ERROR at setup of Test01UserAPI.test_08_users_username_delete_auth ______
  55. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  56. _______ ERROR at setup of Test01UserAPI.test_09_users_check_permissions ________
  57. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  58. _____________ ERROR at setup of Test01UserAPI.test_10_users_me_get _____________
  59. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  60. ____________ ERROR at setup of Test01UserAPI.test_11_users_me_patch ____________
  61. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  62. _____________ ERROR at setup of Test02CategoryAPI.test_02_category _____________
  63. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  64. _________ ERROR at setup of Test02CategoryAPI.test_03_category_delete __________
  65. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  66. ____ ERROR at setup of Test02CategoryAPI.test_04_category_check_permission _____
  67. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  68. ________________ ERROR at setup of Test03GenreAPI.test_02_genre ________________
  69. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  70. ____________ ERROR at setup of Test03GenreAPI.test_03_genres_delete ____________
  71. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  72. _______ ERROR at setup of Test03GenreAPI.test_04_genres_check_permission _______
  73. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  74. ________________ ERROR at setup of Test04TitleAPI.test_02_title ________________
  75. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  76. ____________ ERROR at setup of Test04TitleAPI.test_03_titles_detail ____________
  77. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  78. _______ ERROR at setup of Test04TitleAPI.test_04_titles_check_permission _______
  79. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  80. __________ ERROR at setup of Test05ReviewAPI.test_01_review_not_auth ___________
  81. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  82. _______________ ERROR at setup of Test05ReviewAPI.test_02_review _______________
  83. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  84. ___________ ERROR at setup of Test05ReviewAPI.test_03_review_detail ____________
  85. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  86. ______ ERROR at setup of Test05ReviewAPI.test_04_reviews_check_permission ______
  87. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  88. _________ ERROR at setup of Test06CommentAPI.test_01_comment_not_auth __________
  89. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  90. ______________ ERROR at setup of Test06CommentAPI.test_02_comment ______________
  91. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  92. ___________ ERROR at setup of Test06CommentAPI.test_03_review_detail ___________
  93. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  94. _____ ERROR at setup of Test06CommentAPI.test_04_comment_check_permission ______
  95. E ImportError: cannot import name 'InvalidKeyError' from 'jwt.exceptions' (/usr/local/lib/python3.7/site-packages/jwt/exceptions.py)
  96. =================================== FAILURES ===================================
  97. /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).
  98. /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).
  99. /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).
  100. /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).
  101. /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).
  102. /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).
  103. =========================== short test summary info ============================
  104. FAILED tests/test_01_users.py::Test01UserAPI::test_01_users_not_auth - Import...
  105. FAILED tests/test_01_users.py::Test01UserAPI::test_02_users_username_not_auth
  106. FAILED tests/test_01_users.py::Test01UserAPI::test_03_users_me_not_auth - Imp...
  107. FAILED tests/test_02_category.py::Test02CategoryAPI::test_01_category_not_auth
  108. FAILED tests/test_03_genre.py::Test03GenreAPI::test_01_genre_not_auth - Impor...
  109. FAILED tests/test_04_title.py::Test04TitleAPI::test_01_title_not_auth - Impor...
  110. ERROR tests/test_01_users.py::Test01UserAPI::test_04_users_get_auth - ImportE...
  111. ERROR tests/test_01_users.py::Test01UserAPI::test_05_users_post_auth - Import...
  112. ERROR tests/test_01_users.py::Test01UserAPI::test_06_users_username_get_auth
  113. ERROR tests/test_01_users.py::Test01UserAPI::test_07_users_username_patch_auth
  114. ERROR tests/test_01_users.py::Test01UserAPI::test_08_users_username_delete_auth
  115. ERROR tests/test_01_users.py::Test01UserAPI::test_09_users_check_permissions
  116. ERROR tests/test_01_users.py::Test01UserAPI::test_10_users_me_get - ImportErr...
  117. ERROR tests/test_01_users.py::Test01UserAPI::test_11_users_me_patch - ImportE...
  118. ERROR tests/test_02_category.py::Test02CategoryAPI::test_02_category - Import...
  119. ERROR tests/test_02_category.py::Test02CategoryAPI::test_03_category_delete
  120. ERROR tests/test_02_category.py::Test02CategoryAPI::test_04_category_check_permission
  121. ERROR tests/test_03_genre.py::Test03GenreAPI::test_02_genre - ImportError: ca...
  122. ERROR tests/test_03_genre.py::Test03GenreAPI::test_03_genres_delete - ImportE...
  123. ERROR tests/test_03_genre.py::Test03GenreAPI::test_04_genres_check_permission
  124. ERROR tests/test_04_title.py::Test04TitleAPI::test_02_title - ImportError: ca...
  125. ERROR tests/test_04_title.py::Test04TitleAPI::test_03_titles_detail - ImportE...
  126. ERROR tests/test_04_title.py::Test04TitleAPI::test_04_titles_check_permission
  127. ERROR tests/test_05_review.py::Test05ReviewAPI::test_01_review_not_auth - Imp...
  128. ERROR tests/test_05_review.py::Test05ReviewAPI::test_02_review - ImportError:...
  129. ERROR tests/test_05_review.py::Test05ReviewAPI::test_03_review_detail - Impor...
  130. ERROR tests/test_05_review.py::Test05ReviewAPI::test_04_reviews_check_permission
  131. ERROR tests/test_06_comment.py::Test06CommentAPI::test_01_comment_not_auth - ...
  132. ERROR tests/test_06_comment.py::Test06CommentAPI::test_02_comment - ImportErr...
  133. ERROR tests/test_06_comment.py::Test06CommentAPI::test_03_review_detail - Imp...
  134. ERROR tests/test_06_comment.py::Test06CommentAPI::test_04_comment_check_permission
  135. ========================= 6 failed, 25 errors in 9.67s =========================
  136. ```
  137.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement