Commit 94fbc58
committed
fix(test): correct test_auth.py assertions for dual-purpose /issuer portal
Both test_student_access_restriction and test_session_management were
asserting redirect codes (302/403) but the /issuer route is a dual-purpose
portal that intentionally serves its own login form inline (HTTP 200)
for all non-issuer sessions — no redirect is issued by design.
- test_student_access_restriction: 302/403 -> 200
- test_session_management: 302 -> 200
Added detailed docstrings explaining the portal UX design pattern so
this confusion does not recur in future test iterations.
This brings the full test suite to 53/53 passing (0 failures).1 parent 2e2d97d commit 94fbc58
1 file changed
Lines changed: 22 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
31 | 38 | | |
32 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
33 | 42 | | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
40 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
41 | 56 | | |
42 | 57 | | |
43 | 58 | | |
44 | | - | |
| 59 | + | |
45 | 60 | | |
46 | 61 | | |
47 | | - | |
| 62 | + | |
| 63 | + | |
48 | 64 | | |
49 | | - | |
| 65 | + | |
0 commit comments