From f58434077beed7f9551f8a7dcb9f51b3ea5b2c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Fri, 14 May 2021 02:32:19 +0200 Subject: [PATCH] Add bookmark view tests --- .idea/codeStyles/codeStyleConfig.xml | 5 + .../templates/bookmarks/bookmark_list.html | 2 +- bookmarks/templates/bookmarks/tag_cloud.html | 4 +- bookmarks/tests/helpers.py | 11 +- bookmarks/tests/test_bookmark_archive_view.py | 35 +++++ .../tests/test_bookmark_archived_view.py | 132 ++++++++++++++++++ ...ion.py => test_bookmark_bulk_edit_view.py} | 2 +- bookmarks/tests/test_bookmark_edit_view.py | 97 +++++++++++++ bookmarks/tests/test_bookmark_index_view.py | 132 ++++++++++++++++++ bookmarks/tests/test_bookmark_new_view.py | 81 +++++++++++ bookmarks/tests/test_bookmark_remove_view.py | 35 +++++ .../tests/test_bookmark_unarchive_view.py | 35 +++++ bookmarks/tests/test_bookmarks_list_tag.py | 2 +- bookmarks/tests/test_pagination_tag.py | 2 +- bookmarks/tests/test_tags_service.py | 1 + bookmarks/tests/test_user_profile_model.py | 2 +- 16 files changed, 570 insertions(+), 8 deletions(-) create mode 100644 .idea/codeStyles/codeStyleConfig.xml create mode 100644 bookmarks/tests/test_bookmark_archive_view.py create mode 100644 bookmarks/tests/test_bookmark_archived_view.py rename bookmarks/tests/{test_bulk_edit_integration.py => test_bookmark_bulk_edit_view.py} (98%) create mode 100644 bookmarks/tests/test_bookmark_edit_view.py create mode 100644 bookmarks/tests/test_bookmark_index_view.py create mode 100644 bookmarks/tests/test_bookmark_new_view.py create mode 100644 bookmarks/tests/test_bookmark_remove_view.py create mode 100644 bookmarks/tests/test_bookmark_unarchive_view.py diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml new file mode 100644 index 0000000..79ee123 --- /dev/null +++ b/.idea/codeStyles/codeStyleConfig.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/bookmarks/templates/bookmarks/bookmark_list.html b/bookmarks/templates/bookmarks/bookmark_list.html index d42c2e1..d2c2bcb 100644 --- a/bookmarks/templates/bookmarks/bookmark_list.html +++ b/bookmarks/templates/bookmarks/bookmark_list.html @@ -3,7 +3,7 @@