Advertisement
Guest User

Untitled

a guest
Dec 7th, 2023
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.80 KB | None | 0 0
  1. ❯ DJANGO_SETTINGS_MODULE=babybuddy.settings.test python manage.py test
  2. Found 292 test(s).
  3. Creating test database for alias 'default'...
  4. Cache table 'cache_default' already exists.
  5. System check identified no issues (0 silenced).
  6. ...................................................................................................................E........E...............FFFFFF....E........................................EEEE.............................................................................F.F...........E.....
  7. ======================================================================
  8. ERROR: test_change_password (babybuddy.tests.tests_forms.FormsTestCase)
  9. ----------------------------------------------------------------------
  10. Traceback (most recent call last):
  11. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_forms.py", line 67, in test_change_password
  12. self.assertFormError(
  13. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
  14. self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
  15. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
  16. if not form.is_bound:
  17. AttributeError: 'HttpResponse' object has no attribute 'is_bound'
  18.  
  19. ======================================================================
  20. ERROR: test_user_settings_invalid (babybuddy.tests.tests_forms.FormsTestCase)
  21. ----------------------------------------------------------------------
  22. Traceback (most recent call last):
  23. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_forms.py", line 215, in test_user_settings_invalid
  24. self.assertFormError(page, "user_form", "email", "Enter a valid email address.")
  25. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
  26. self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
  27. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
  28. if not form.is_bound:
  29. AttributeError: 'HttpResponse' object has no attribute 'is_bound'
  30.  
  31. ======================================================================
  32. ERROR: test_delete (core.tests.tests_forms.ChildFormsTestCase)
  33. ----------------------------------------------------------------------
  34. Traceback (most recent call last):
  35. File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 212, in test_delete
  36. self.assertFormError(
  37. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
  38. self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
  39. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
  40. if not form.is_bound:
  41. AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
  42.  
  43. ======================================================================
  44. ERROR: test_validate_date (core.tests.tests_forms.ValidationsTestCase)
  45. ----------------------------------------------------------------------
  46. Traceback (most recent call last):
  47. File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 801, in test_validate_date
  48. self.assertFormError(page, "form", "date", "Date can not be in the future.")
  49. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
  50. self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
  51. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
  52. if not form.is_bound:
  53. AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
  54.  
  55. ======================================================================
  56. ERROR: test_validate_duration (core.tests.tests_forms.ValidationsTestCase)
  57. ----------------------------------------------------------------------
  58. Traceback (most recent call last):
  59. File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 815, in test_validate_duration
  60. self.assertFormError(
  61. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
  62. self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
  63. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
  64. if not form.is_bound:
  65. AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
  66.  
  67. ======================================================================
  68. ERROR: test_validate_time (core.tests.tests_forms.ValidationsTestCase)
  69. ----------------------------------------------------------------------
  70. Traceback (most recent call last):
  71. File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 836, in test_validate_time
  72. self.assertFormError(page, "form", "end", "Date/time can not be in the future.")
  73. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
  74. self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
  75. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
  76. if not form.is_bound:
  77. AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
  78.  
  79. ======================================================================
  80. ERROR: test_validate_unique_period (core.tests.tests_forms.ValidationsTestCase)
  81. ----------------------------------------------------------------------
  82. Traceback (most recent call last):
  83. File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 856, in test_validate_unique_period
  84. self.assertFormError(
  85. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
  86. self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
  87. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
  88. if not form.is_bound:
  89. AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
  90.  
  91. ======================================================================
  92. ERROR: test_sleep_pattern (reports.tests.graphs.tests_sleep_pattern.SleepPatternTestCase)
  93. ----------------------------------------------------------------------
  94. Traceback (most recent call last):
  95. File "/home/victor/dev/babybuddy/reports/tests/graphs/tests_sleep_pattern.py", line 26, in test_sleep_pattern
  96. start=dt.datetime(2000, 1, 1, 0, 0, tzinfo=timezone.utc),
  97. AttributeError: module 'django.utils.timezone' has no attribute 'utc'
  98.  
  99. ======================================================================
  100. FAIL: test_rolling_sessions (babybuddy.tests.tests_views.ViewsTestCase)
  101. ----------------------------------------------------------------------
  102. Traceback (most recent call last):
  103. File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/utils.py", line 443, in inner
  104. return func(*args, **kwargs)
  105. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 50, in test_rolling_sessions
  106. self.assertNotEqual(session1, session2)
  107. AssertionError: 'Set-Cookie: sessionid=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/; SameSite=Lax' == 'Set-Cookie: sessionid=""; expires=Thu, 01 Jan 1970 00:00:00 GMT; Max-Age=0; Path=/; SameSite=Lax'
  108.  
  109. ======================================================================
  110. FAIL: test_root_router (babybuddy.tests.tests_views.ViewsTestCase)
  111. ----------------------------------------------------------------------
  112. Traceback (most recent call last):
  113. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 38, in test_root_router
  114. self.assertEqual(page.url, "/dashboard/")
  115. AssertionError: '/login/?next=/' != '/dashboard/'
  116. - /login/?next=/
  117. + /dashboard/
  118.  
  119.  
  120. ======================================================================
  121. FAIL: test_user_settings (babybuddy.tests.tests_views.ViewsTestCase)
  122. ----------------------------------------------------------------------
  123. Traceback (most recent call last):
  124. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 55, in test_user_settings
  125. self.assertEqual(page.status_code, 200)
  126. AssertionError: 302 != 200
  127.  
  128. ======================================================================
  129. FAIL: test_user_unlock (babybuddy.tests.tests_views.ViewsTestCase)
  130. ----------------------------------------------------------------------
  131. Traceback (most recent call last):
  132. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 91, in test_user_unlock
  133. self.assertEqual(page.status_code, 200)
  134. AssertionError: 302 != 200
  135.  
  136. ======================================================================
  137. FAIL: test_user_views (babybuddy.tests.tests_views.ViewsTestCase)
  138. ----------------------------------------------------------------------
  139. Traceback (most recent call last):
  140. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 67, in test_user_views
  141. self.assertEqual(page.status_code, 403)
  142. AssertionError: 302 != 403
  143.  
  144. ======================================================================
  145. FAIL: test_welcome (babybuddy.tests.tests_views.ViewsTestCase)
  146. ----------------------------------------------------------------------
  147. Traceback (most recent call last):
  148. File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 98, in test_welcome
  149. self.assertEqual(page.status_code, 200)
  150. AssertionError: 302 != 200
  151.  
  152. ======================================================================
  153. FAIL: test_card_feeding_recent (dashboard.tests.tests_templatetags.TemplateTagsTestCase)
  154. ----------------------------------------------------------------------
  155. Traceback (most recent call last):
  156. File "/home/victor/dev/babybuddy/dashboard/tests/tests_templatetags.py", line 167, in test_card_feeding_recent
  157. self.assertEqual(data["feedings"][0]["total"], 2.5)
  158. AssertionError: 0.25 != 2.5
  159.  
  160. ======================================================================
  161. FAIL: test_card_sleep_day (dashboard.tests.tests_templatetags.TemplateTagsTestCase)
  162. ----------------------------------------------------------------------
  163. Traceback (most recent call last):
  164. File "/home/victor/dev/babybuddy/dashboard/tests/tests_templatetags.py", line 226, in test_card_sleep_day
  165. self.assertEqual(data["sleeps"][0]["total"], timezone.timedelta(seconds=43200))
  166. AssertionError: datetime.timedelta(seconds=30600) != datetime.timedelta(seconds=43200)
  167.  
  168. ----------------------------------------------------------------------
  169. Ran 292 tests in 171.542s
  170.  
  171. FAILED (failures=8, errors=8)
  172. Destroying test database for alias 'default'...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement