Skip to content

[achievements] test user_achievements template view#1227

Open
bensim0305 wants to merge 6 commits intodevfrom
achievements/test_user_achievements_template
Open

[achievements] test user_achievements template view#1227
bensim0305 wants to merge 6 commits intodevfrom
achievements/test_user_achievements_template

Conversation

@bensim0305
Copy link
Contributor

To address issue #1202 , I wrote unit tests testing the url pattern "user_achievements" and the views function user_achievements. This also tested the user_achievements html template, ensuring that cases where there are achievements unlocked, in progress, or none at all were behaving properly.

@bensim0305 bensim0305 added this to the 2025/Sprint 4 milestone May 20, 2025
@bensim0305 bensim0305 self-assigned this May 20, 2025
@bensim0305 bensim0305 requested review from abargher and jiayuew1 May 20, 2025 16:48
Copy link
Contributor

@jiayuew1 jiayuew1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it. Good to go!

Copy link
Contributor

@abargher abargher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More merge conflicts, similar to the previous PR with test changes. I expect those to help fix these conflicts.

Benjamin Sim added 2 commits May 24, 2025 23:11
@bensim0305
Copy link
Contributor Author

Fixed merge conflicts!

@bensim0305 bensim0305 requested a review from abargher May 25, 2025 04:14
Copy link
Contributor

@abargher abargher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like these commits were pulled into another PR, so this should be safe to close (it will still be graded). Generally we want to avoid this, but this was more about the order in which I merged things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create tests for the user_achievements template and view functions

3 participants