CiviWiki / OpenCiviWiki

Building a Better Democracy for the Internet Age
https://civi.wiki
Other
588 stars 344 forks source link

Added Unit tests for ProfileFollowing View #1472

Open belalmn-cmu opened 1 year ago

belalmn-cmu commented 1 year ago

Closes #1447

Description

This PR aims to supply the existing (completed) Issue #1447 with some Unit Tests to keep consistent with the project's QA methods. I created a new entry in the test_views.py file, and simulated adding two profiles to a user's following list, and checking if the template includes their usernames as intended. There are also additional misc tests such as checking if the correct template "profile_following.html" is used in the view.

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit f4fa2cc1 and detected 0 issues on this pull request.

View more on Code Climate.