Trophy case 3,4
Review Request #3878 — Created Feb. 16, 2013 and discarded — Latest diff uploaded
(1)
unit test, named test_importing_trophies, do follow things.
1.Add User object named user1.
2.Add 2 reveiw requests associated with user1, display_id=1000 for Milestone Trophy and display_id=1221 for Palindrome Trophy.
3.Compute user1's all trophies.
And, this code passed test.
(2)
I made sure profile.extra_data works.
I set the pdb.set_trace in "if not extra_data.get('has_trophy_case', False)", then I tried to access twice and I checked that pdb is called only once.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 29. See what's changed.
orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
| reviewboard/accounts/managers.py |
|---|
| reviewboard/accounts/models.py |
|---|
| reviewboard/accounts/evolutions/__init__.py |
|---|
| reviewboard/accounts/evolutions/trophies.py |
|---|
| reviewboard/reviews/templatetags/reviewtags.py |
|---|
| reviewboard/templates/reviews/user_page.html |
|---|