Created
March 26, 2017 08:48
-
-
Save giginet/a782c7c61847b4624fe0d52087e8f267 to your computer and use it in GitHub Desktop.
Running tests on MySQL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (third-impact) third-impact (mysqlclient) ✗ python manage.py test kawaz.apps | |
| Creating test database for alias 'default'... | |
| Got an error creating the test database: (1007, "Can't create database 'test_kawaz_development'; database exists") | |
| Type 'yes' if you would like to try deleting the test database 'test_kawaz_development', or 'no' to cancel: yes | |
| Destroying old test database for alias 'default'... | |
| .....................................................FF.F..FFFFF...........FFFFFFFFFF......................................................FF.................................F.F.FFFF......F......FFFFFF...............................................................................................F.F......F........FFFFFF........................................................................................................F..........................................................................................................................E.E..F............FFF.....FFFFFFFFFFFFFFF....................................... | |
| ====================================================================== | |
| ERROR: test_authorized_user_can_create_via_create_view (kawaz.apps.projects.tests.test_views.ProjectCreateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 189, in test_authorized_user_can_create_via_create_view | |
| e = Project.objects.get(pk=1) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method | |
| return getattr(self.get_queryset(), name)(*args, **kwargs) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/db/models/query.py", line 385, in get | |
| self.model._meta.object_name | |
| kawaz.apps.projects.models.DoesNotExist: Project matching query does not exist. | |
| ====================================================================== | |
| ERROR: test_user_cannot_modify_administrator_id (kawaz.apps.projects.tests.test_views.ProjectCreateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 213, in test_user_cannot_modify_administrator_id | |
| e = Project.objects.get(pk=1) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/db/models/manager.py", line 85, in manager_method | |
| return getattr(self.get_queryset(), name)(*args, **kwargs) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/db/models/query.py", line 385, in get | |
| self.model._meta.object_name | |
| kawaz.apps.projects.models.DoesNotExist: Project matching query does not exist. | |
| ====================================================================== | |
| FAIL: test_set_last_modifier_user (kawaz.apps.announcements.tests.test_views.AnnouncementCreateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 220, in test_set_last_modifier_user | |
| self.assertRedirects(r, '/announcements/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/announcements/75/' != '/announcements/1/' | |
| - /announcements/75/ | |
| ? ^^ | |
| + /announcements/1/ | |
| ? ^ | |
| : Response redirected to '/announcements/75/', expected '/announcements/1/' | |
| ====================================================================== | |
| FAIL: test_staff_user_can_create_via_create_view (kawaz.apps.announcements.tests.test_views.AnnouncementCreateViewTestCase) | |
| Tests staff user can create announcement via AnnouncementCreateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 192, in test_staff_user_can_create_via_create_view | |
| self.assertRedirects(r, '/announcements/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/announcements/76/' != '/announcements/1/' | |
| - /announcements/76/ | |
| ? ^^ | |
| + /announcements/1/ | |
| ? ^ | |
| : Response redirected to '/announcements/76/', expected '/announcements/1/' | |
| ====================================================================== | |
| FAIL: test_staffs_cannot_modify_author_id (kawaz.apps.announcements.tests.test_views.AnnouncementCreateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 242, in test_staffs_cannot_modify_author_id | |
| self.assertRedirects(r, '/announcements/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/announcements/77/' != '/announcements/1/' | |
| - /announcements/77/ | |
| ? ^^ | |
| + /announcements/1/ | |
| ? ^ | |
| : Response redirected to '/announcements/77/', expected '/announcements/1/' | |
| ====================================================================== | |
| FAIL: test_anonymous_cannot_delete_via_announcement_delete_view (kawaz.apps.announcements.tests.test_views.AnnouncementDeleteViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 456, in test_anonymous_cannot_delete_via_announcement_delete_view | |
| self.assertRedirects(r, '{0}?next=/announcements/1/delete/'.format(settings.LOGIN_URL)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_author_can_delete_via_announcement_delete_view (kawaz.apps.announcements.tests.test_views.AnnouncementDeleteViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 418, in test_author_can_delete_via_announcement_delete_view | |
| self.assertRedirects(r, '/announcements/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_other_cannot_delete_via_announcement_delete_view (kawaz.apps.announcements.tests.test_views.AnnouncementDeleteViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 439, in test_other_cannot_delete_via_announcement_delete_view | |
| self.assertRedirects(r, '{0}?next=/announcements/1/delete/'.format(settings.LOGIN_URL)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_staff_can_delete_via_announcement_delete_view (kawaz.apps.announcements.tests.test_views.AnnouncementDeleteViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 428, in test_staff_can_delete_via_announcement_delete_view | |
| self.assertRedirects(r, '/announcements/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_wille_cannot_delete_via_announcement_delete_view (kawaz.apps.announcements.tests.test_views.AnnouncementDeleteViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 448, in test_wille_cannot_delete_via_announcement_delete_view | |
| self.assertRedirects(r, '{0}?next=/announcements/1/delete/'.format(settings.LOGIN_URL)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_update_via_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 306, in test_anonymous_user_can_not_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/announcements/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_view_announcement_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| Tests anonymous user can not view AnnouncementUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 269, in test_anonymous_user_can_not_view_announcement_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/announcements/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_general_user_can_not_view_announcement_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 283, in test_general_user_can_not_view_announcement_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/announcements/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_other_user_cannot_update_via_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 336, in test_other_user_cannot_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/announcements/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_set_last_modifier_via_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 366, in test_set_last_modifier_via_update_view | |
| self.assertRedirects(r, '/announcements/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_staff_can_update_via_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| Tests author user can update announcement via AnnouncementUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 348, in test_staff_can_update_via_update_view | |
| self.assertRedirects(r, '/announcements/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_staff_can_view_announcement_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 291, in test_staff_can_view_announcement_update_view | |
| self.assertTemplateUsed(r, 'announcements/announcement_form.html') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 572, in assertTemplateUsed | |
| % (template_name, ', '.join(template_names)) | |
| AssertionError: False is not true : Template 'announcements/announcement_form.html' was not a template used to render the response. Actual template(s) used: 404.html, base.html, components/fb-header.html, components/attachment_form.html, components/google_analytics.html, components/god_stamp.html | |
| ====================================================================== | |
| FAIL: test_user_cannot_modify_author_id (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 388, in test_user_cannot_modify_author_id | |
| self.assertRedirects(r, '/announcements/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_wille_user_can_not_update_via_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 321, in test_wille_user_can_not_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/announcements/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_wille_user_can_not_view_announcement_update_view (kawaz.apps.announcements.tests.test_views.AnnouncementUpdateViewTestCase) | |
| Tests wille user can not view AnnouncementUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/announcements/tests/test_views.py", line 275, in test_wille_user_can_not_view_announcement_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/announcements/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_get_absolute_url (kawaz.apps.blogs.tests.test_models.EntryModelTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/test_models.py", line 135, in test_get_absolute_url | |
| self.assertEqual(entry.get_absolute_url(), '/blogs/mecha_kawaztan/2112/9/21/1/') | |
| AssertionError: '/blogs/mecha_kawaztan/2112/9/21/31/' != '/blogs/mecha_kawaztan/2112/9/21/1/' | |
| - /blogs/mecha_kawaztan/2112/9/21/31/ | |
| ? - | |
| + /blogs/mecha_kawaztan/2112/9/21/1/ | |
| ====================================================================== | |
| FAIL: test_get_absolute_url_of_draft (kawaz.apps.blogs.tests.test_models.EntryModelTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/test_models.py", line 143, in test_get_absolute_url_of_draft | |
| self.assertEqual(entry.get_absolute_url(), '/blogs/kawaztan_kawaztan/1/update/') | |
| AssertionError: '/blogs/kawaztan_kawaztan/32/update/' != '/blogs/kawaztan_kawaztan/1/update/' | |
| - /blogs/kawaztan_kawaztan/32/update/ | |
| ? ^^ | |
| + /blogs/kawaztan_kawaztan/1/update/ | |
| ? ^ | |
| ====================================================================== | |
| FAIL: test_authorized_user_can_create_via_create_view (kawaz.apps.blogs.tests.views.test_crud.EntryCreateViewTestCase) | |
| Tests authorized user can create entry via EntryCreateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 106, in test_authorized_user_can_create_via_create_view | |
| self.assertRedirects(r, '/blogs/{0}/{1}/{2}/{3}/1/'.format(self.user.username, today.year, today.month, today.day)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/blogs/kawaztan682/2017/3/26/107/' != '/blogs/kawaztan682/2017/3/26/1/' | |
| - /blogs/kawaztan682/2017/3/26/107/ | |
| ? -- | |
| + /blogs/kawaztan682/2017/3/26/1/ | |
| : Response redirected to '/blogs/kawaztan682/2017/3/26/107/', expected '/blogs/kawaztan682/2017/3/26/1/' | |
| ====================================================================== | |
| FAIL: test_user_can_create_entry_with_category (kawaz.apps.blogs.tests.views.test_crud.EntryCreateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 148, in test_user_can_create_entry_with_category | |
| self.assertRedirects(r, '/blogs/{0}/{1}/{2}/{3}/1/'.format(self.user.username, today.year, today.month, today.day)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/blogs/kawaztan684/2017/3/26/108/' != '/blogs/kawaztan684/2017/3/26/1/' | |
| - /blogs/kawaztan684/2017/3/26/108/ | |
| ? -- | |
| + /blogs/kawaztan684/2017/3/26/1/ | |
| : Response redirected to '/blogs/kawaztan684/2017/3/26/108/', expected '/blogs/kawaztan684/2017/3/26/1/' | |
| ====================================================================== | |
| FAIL: test_user_cannot_modify_author_id (kawaz.apps.blogs.tests.views.test_crud.EntryCreateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 128, in test_user_cannot_modify_author_id | |
| self.assertRedirects(r, '/blogs/{0}/{1}/{2}/{3}/1/'.format(self.user.username, today.year, today.month, today.day)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/blogs/kawaztan687/2017/3/26/109/' != '/blogs/kawaztan687/2017/3/26/1/' | |
| - /blogs/kawaztan687/2017/3/26/109/ | |
| ? -- | |
| + /blogs/kawaztan687/2017/3/26/1/ | |
| : Response redirected to '/blogs/kawaztan687/2017/3/26/109/', expected '/blogs/kawaztan687/2017/3/26/1/' | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_delete_via_delete_view (kawaz.apps.blogs.tests.views.test_crud.EntryDeleteViewTestCase) | |
| 非ログインユーザーは記事の削除ができない | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 487, in test_anonymous_user_can_not_delete_via_delete_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/blogs/author_kawaztan/1/delete/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_author_can_delete_via_delete_view (kawaz.apps.blogs.tests.views.test_crud.EntryDeleteViewTestCase) | |
| 作者は記事を削除できる | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 501, in test_author_can_delete_via_delete_view | |
| self.assertRedirects(r, '/blogs/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_other_user_cannot_delete_via_delete_view (kawaz.apps.blogs.tests.views.test_crud.EntryDeleteViewTestCase) | |
| 作者以外のユーザーは記事の削除ができない | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 494, in test_other_user_cannot_delete_via_delete_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/blogs/author_kawaztan/1/delete/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_others_can_not_view_draft_entry (kawaz.apps.blogs.tests.views.test_crud.EntryDetailViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 62, in test_others_can_not_view_draft_entry | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/blogs/{}/1/update/'.format(entry.author.username)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/registration/login/?next=/blogs/kawaztan707/119/update/' != '/registration/login/?next=/blogs/kawaztan707/1/update/' | |
| - /registration/login/?next=/blogs/kawaztan707/119/update/ | |
| ? -- | |
| + /registration/login/?next=/blogs/kawaztan707/1/update/ | |
| : Response redirected to '/registration/login/?next=/blogs/kawaztan707/119/update/', expected '/registration/login/?next=/blogs/kawaztan707/1/update/' | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_update_via_update_view (kawaz.apps.blogs.tests.views.test_crud.EntryUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 206, in test_anonymous_user_can_not_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/blogs/author_kawaztan/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_view_entry_update_view (kawaz.apps.blogs.tests.views.test_crud.EntryUpdateViewTestCase) | |
| Tests anonymous user can not view EntryUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 184, in test_anonymous_user_can_not_view_entry_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/blogs/author_kawaztan/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_author_can_update_via_update_view (kawaz.apps.blogs.tests.views.test_crud.EntryUpdateViewTestCase) | |
| Tests author user can update entry via EntryUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 233, in test_author_can_update_via_update_view | |
| self.assertRedirects(r, '/blogs/author_kawaztan/{0}/{1}/{2}/1/'.format(published_at.year, published_at.month, published_at.day)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_authorized_user_can_view_entry_update_view (kawaz.apps.blogs.tests.views.test_crud.EntryUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 192, in test_authorized_user_can_view_entry_update_view | |
| self.assertTemplateUsed(r, 'blogs/entry_form.html') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 572, in assertTemplateUsed | |
| % (template_name, ', '.join(template_names)) | |
| AssertionError: False is not true : Template 'blogs/entry_form.html' was not a template used to render the response. Actual template(s) used: 404.html, base.html, components/fb-header.html, components/attachment_form.html, components/google_analytics.html, components/god_stamp.html | |
| ====================================================================== | |
| FAIL: test_other_user_cannot_update_via_update_view (kawaz.apps.blogs.tests.views.test_crud.EntryUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 220, in test_other_user_cannot_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/blogs/author_kawaztan/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_user_cannot_modify_author_id (kawaz.apps.blogs.tests.views.test_crud.EntryUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/blogs/tests/views/test_crud.py", line 256, in test_user_cannot_modify_author_id | |
| self.assertRedirects(r, '/blogs/author_kawaztan/{0}/{1}/{2}/1/'.format(published_at.year, published_at.month, published_at.day)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_authorized_user_can_create_via_create_view (kawaz.apps.events.tests.test_views.EventCreateViewTestCase) | |
| Tests authorized user can create event via EventCreateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 125, in test_authorized_user_can_create_via_create_view | |
| self.assertRedirects(r, '/events/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/events/165/' != '/events/1/' | |
| - /events/165/ | |
| ? -- | |
| + /events/1/ | |
| : Response redirected to '/events/165/', expected '/events/1/' | |
| ====================================================================== | |
| FAIL: test_user_cannot_modify_organizer_id (kawaz.apps.events.tests.test_views.EventCreateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 149, in test_user_cannot_modify_organizer_id | |
| self.assertRedirects(r, '/events/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/events/166/' != '/events/1/' | |
| - /events/166/ | |
| ? -- | |
| + /events/1/ | |
| : Response redirected to '/events/166/', expected '/events/1/' | |
| ====================================================================== | |
| FAIL: test_others_can_not_view_draft_event (kawaz.apps.events.tests.test_views.EventDetailViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 72, in test_others_can_not_view_draft_event | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/events/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 331, in assertRedirects | |
| msg_prefix + "Response redirected to '%s', expected '%s'" % (url, expected_url) | |
| AssertionError: '/registration/login/?next=/events/173/update/' != '/registration/login/?next=/events/1/update/' | |
| - /registration/login/?next=/events/173/update/ | |
| ? -- | |
| + /registration/login/?next=/events/1/update/ | |
| : Response redirected to '/registration/login/?next=/events/173/update/', expected '/registration/login/?next=/events/1/update/' | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_update_via_update_view (kawaz.apps.events.tests.test_views.EventUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 197, in test_anonymous_user_can_not_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/events/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_view_event_update_view (kawaz.apps.events.tests.test_views.EventUpdateViewTestCase) | |
| Tests anonymous user can not view EventUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 171, in test_anonymous_user_can_not_view_event_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/events/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_authorized_user_can_view_event_update_view (kawaz.apps.events.tests.test_views.EventUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 180, in test_authorized_user_can_view_event_update_view | |
| self.assertTemplateUsed(r, 'events/event_form.html') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 572, in assertTemplateUsed | |
| % (template_name, ', '.join(template_names)) | |
| AssertionError: False is not true : Template 'events/event_form.html' was not a template used to render the response. Actual template(s) used: 404.html, base.html, components/fb-header.html, components/attachment_form.html, components/google_analytics.html, components/god_stamp.html | |
| ====================================================================== | |
| FAIL: test_organizer_can_update_via_update_view (kawaz.apps.events.tests.test_views.EventUpdateViewTestCase) | |
| Tests authorized user can update event via EventUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 230, in test_organizer_can_update_via_update_view | |
| self.assertRedirects(r, '/events/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_other_user_cannot_update_via_update_view (kawaz.apps.events.tests.test_views.EventUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 215, in test_other_user_cannot_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/events/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_user_cannot_modify_organizer_id (kawaz.apps.events.tests.test_views.EventUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/events/tests/test_views.py", line 255, in test_user_cannot_modify_organizer_id | |
| self.assertRedirects(r, '/events/1/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_get_products_by_categories (kawaz.apps.products.tests.test_templatetags.GetProductsByCategoriesTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/products/tests/test_templatetags.py", line 166, in test_get_products_by_categories | |
| self.assertEqual(products2[1], p2) | |
| AssertionError: <Product: かわずたんアドベンチャー69> != <Product: かわずたんアドベンチャー70> | |
| ====================================================================== | |
| FAIL: test_administrator_can_delete_via_project_delete_view (kawaz.apps.projects.tests.test_views.ProjectDeleteViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 421, in test_administrator_can_delete_via_project_delete_view | |
| self.assertEqual(Project.objects.count(), 0) | |
| AssertionError: 1 != 0 | |
| ====================================================================== | |
| FAIL: test_anonymous_cannnot_join_project (kawaz.apps.projects.tests.test_views.ProjectJoinViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 604, in test_anonymous_cannnot_join_project | |
| self.assertRedirects(r, '{0}?next={1}'.format(settings.LOGIN_URL, '/projects/1/join/')) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_get_method_is_not_allowed (kawaz.apps.projects.tests.test_views.ProjectJoinViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 613, in test_get_method_is_not_allowed | |
| self.assertEqual(r.status_code, 405) | |
| AssertionError: 404 != 405 | |
| ====================================================================== | |
| FAIL: test_user_can_join_project_via_project_join_view (kawaz.apps.projects.tests.test_views.ProjectJoinViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 622, in test_user_can_join_project_via_project_join_view | |
| self.assertRedirects(r, '/projects/{}/'.format(self.project.slug)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_anonymous_cannnot_quit_project (kawaz.apps.projects.tests.test_views.ProjectQuitViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 640, in test_anonymous_cannnot_quit_project | |
| self.assertRedirects(r, '{0}?next={1}'.format(settings.LOGIN_URL, '/projects/1/quit/')) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_get_method_is_not_allowed (kawaz.apps.projects.tests.test_views.ProjectQuitViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 650, in test_get_method_is_not_allowed | |
| self.assertEqual(r.status_code, 405) | |
| AssertionError: 404 != 405 | |
| ====================================================================== | |
| FAIL: test_user_can_quit_project_via_project_quit_view (kawaz.apps.projects.tests.test_views.ProjectQuitViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 662, in test_user_can_quit_project_via_project_quit_view | |
| self.assertRedirects(r, '/projects/{}/'.format(self.project.slug)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_administrator_can_update_via_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| Tests administrator user can update project via ProjectUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 315, in test_administrator_can_update_via_update_view | |
| self.assertRedirects(r, '/projects/{}/'.format(self.project.slug)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_update_via_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 274, in test_anonymous_user_can_not_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/projects/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_anonymous_user_can_not_view_project_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| Tests anonymous user can not view ProjectUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 235, in test_anonymous_user_can_not_view_project_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/projects/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_authorized_user_can_view_project_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 249, in test_authorized_user_can_view_project_update_view | |
| self.assertTemplateUsed(r, 'projects/project_form.html') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 572, in assertTemplateUsed | |
| % (template_name, ', '.join(template_names)) | |
| AssertionError: False is not true : Template 'projects/project_form.html' was not a template used to render the response. Actual template(s) used: 404.html, base.html, components/fb-header.html, components/attachment_form.html, components/google_analytics.html, components/god_stamp.html | |
| ====================================================================== | |
| FAIL: test_member_can_update_via_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| Tests project member can update project via ProjectUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 332, in test_member_can_update_via_update_view | |
| self.assertRedirects(r, '/projects/{}/'.format(self.project.slug)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_member_can_view_project_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 260, in test_member_can_view_project_update_view | |
| self.assertTemplateUsed(r, 'projects/project_form.html') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 572, in assertTemplateUsed | |
| % (template_name, ', '.join(template_names)) | |
| AssertionError: False is not true : Template 'projects/project_form.html' was not a template used to render the response. Actual template(s) used: 404.html, base.html, components/fb-header.html, components/attachment_form.html, components/google_analytics.html, components/god_stamp.html | |
| ====================================================================== | |
| FAIL: test_other_user_cannot_update_via_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 302, in test_other_user_cannot_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/projects/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_set_last_modifier_via_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 351, in test_set_last_modifier_via_update_view | |
| self.assertRedirects(r, '/projects/{}/'.format(self.project.slug)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_user_cannot_modify_administrator_id (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 394, in test_user_cannot_modify_administrator_id | |
| self.assertRedirects(r, '/projects/{}/'.format(self.project.slug)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_user_cannot_update_slug (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| Tests anyone cannot update prject's slug | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 370, in test_user_cannot_update_slug | |
| self.assertRedirects(r, '/projects/{}/'.format(self.project.slug)) | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_wille_user_can_not_update_via_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 288, in test_wille_user_can_not_update_via_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/projects/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ====================================================================== | |
| FAIL: test_wille_user_can_not_view_project_update_view (kawaz.apps.projects.tests.test_views.ProjectUpdateViewTestCase) | |
| Tests wille user can not view ProjectUpdateView | |
| ---------------------------------------------------------------------- | |
| Traceback (most recent call last): | |
| File "/Users/giginet/third-impact/src/kawaz/apps/projects/tests/test_views.py", line 241, in test_wille_user_can_not_view_project_update_view | |
| self.assertRedirects(r, settings.LOGIN_URL + '?next=/projects/1/update/') | |
| File "/Users/giginet/.pyenv/versions/third-impact/lib/python3.5/site-packages/django/test/testcases.py", line 294, in assertRedirects | |
| % (response.status_code, status_code) | |
| AssertionError: 404 != 302 : Response didn't redirect as expected: Response code was 404 (expected 302) | |
| ---------------------------------------------------------------------- | |
| Ran 627 tests in 360.358s | |
| FAILED (failures=62, errors=2) | |
| Destroying test database for alias 'default'... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment