Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ❯ DJANGO_SETTINGS_MODULE=babybuddy.settings.test python manage.py test
- Found 292 test(s).
- Creating test database for alias 'default'...
- Cache table 'cache_default' already exists.
- System check identified no issues (0 silenced).
- ...................................................................................................................E........E...............FFFFFF....E........................................EEEE.............................................................................F.F...........E.....
- ======================================================================
- ERROR: test_change_password (babybuddy.tests.tests_forms.FormsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_forms.py", line 67, in test_change_password
- self.assertFormError(
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
- self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
- if not form.is_bound:
- AttributeError: 'HttpResponse' object has no attribute 'is_bound'
- ======================================================================
- ERROR: test_user_settings_invalid (babybuddy.tests.tests_forms.FormsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_forms.py", line 215, in test_user_settings_invalid
- self.assertFormError(page, "user_form", "email", "Enter a valid email address.")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
- self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
- if not form.is_bound:
- AttributeError: 'HttpResponse' object has no attribute 'is_bound'
- ======================================================================
- ERROR: test_delete (core.tests.tests_forms.ChildFormsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 212, in test_delete
- self.assertFormError(
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
- self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
- if not form.is_bound:
- AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
- ======================================================================
- ERROR: test_validate_date (core.tests.tests_forms.ValidationsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 801, in test_validate_date
- self.assertFormError(page, "form", "date", "Date can not be in the future.")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
- self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
- if not form.is_bound:
- AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
- ======================================================================
- ERROR: test_validate_duration (core.tests.tests_forms.ValidationsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 815, in test_validate_duration
- self.assertFormError(
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
- self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
- if not form.is_bound:
- AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
- ======================================================================
- ERROR: test_validate_time (core.tests.tests_forms.ValidationsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 836, in test_validate_time
- self.assertFormError(page, "form", "end", "Date/time can not be in the future.")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
- self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
- if not form.is_bound:
- AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
- ======================================================================
- ERROR: test_validate_unique_period (core.tests.tests_forms.ValidationsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/core/tests/tests_forms.py", line 856, in test_validate_unique_period
- self.assertFormError(
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 603, in assertFormError
- self._assert_form_error(form, field, errors, msg_prefix, f"form {form!r}")
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/testcases.py", line 569, in _assert_form_error
- if not form.is_bound:
- AttributeError: 'TemplateResponse' object has no attribute 'is_bound'
- ======================================================================
- ERROR: test_sleep_pattern (reports.tests.graphs.tests_sleep_pattern.SleepPatternTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/reports/tests/graphs/tests_sleep_pattern.py", line 26, in test_sleep_pattern
- start=dt.datetime(2000, 1, 1, 0, 0, tzinfo=timezone.utc),
- AttributeError: module 'django.utils.timezone' has no attribute 'utc'
- ======================================================================
- FAIL: test_rolling_sessions (babybuddy.tests.tests_views.ViewsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/.venv/lib/python3.10/site-packages/django/test/utils.py", line 443, in inner
- return func(*args, **kwargs)
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 50, in test_rolling_sessions
- self.assertNotEqual(session1, session2)
- 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'
- ======================================================================
- FAIL: test_root_router (babybuddy.tests.tests_views.ViewsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 38, in test_root_router
- self.assertEqual(page.url, "/dashboard/")
- AssertionError: '/login/?next=/' != '/dashboard/'
- - /login/?next=/
- + /dashboard/
- ======================================================================
- FAIL: test_user_settings (babybuddy.tests.tests_views.ViewsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 55, in test_user_settings
- self.assertEqual(page.status_code, 200)
- AssertionError: 302 != 200
- ======================================================================
- FAIL: test_user_unlock (babybuddy.tests.tests_views.ViewsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 91, in test_user_unlock
- self.assertEqual(page.status_code, 200)
- AssertionError: 302 != 200
- ======================================================================
- FAIL: test_user_views (babybuddy.tests.tests_views.ViewsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 67, in test_user_views
- self.assertEqual(page.status_code, 403)
- AssertionError: 302 != 403
- ======================================================================
- FAIL: test_welcome (babybuddy.tests.tests_views.ViewsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/babybuddy/tests/tests_views.py", line 98, in test_welcome
- self.assertEqual(page.status_code, 200)
- AssertionError: 302 != 200
- ======================================================================
- FAIL: test_card_feeding_recent (dashboard.tests.tests_templatetags.TemplateTagsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/dashboard/tests/tests_templatetags.py", line 167, in test_card_feeding_recent
- self.assertEqual(data["feedings"][0]["total"], 2.5)
- AssertionError: 0.25 != 2.5
- ======================================================================
- FAIL: test_card_sleep_day (dashboard.tests.tests_templatetags.TemplateTagsTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/victor/dev/babybuddy/dashboard/tests/tests_templatetags.py", line 226, in test_card_sleep_day
- self.assertEqual(data["sleeps"][0]["total"], timezone.timedelta(seconds=43200))
- AssertionError: datetime.timedelta(seconds=30600) != datetime.timedelta(seconds=43200)
- ----------------------------------------------------------------------
- Ran 292 tests in 171.542s
- FAILED (failures=8, errors=8)
- Destroying test database for alias 'default'...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement