Commit 74a4b2e
authored
Fix access to license/ app (aboutcode-org#425)
* licenses/ will render all licenses without 500 error
https://github.com/nexB/scancode.io/blob/16644a60c6dbe81fa078fc6941fbd8be817fe935/scancodeio/urls.py#L53
include function is updated
Signed-off-by: lf32 <96695352+lf32@users.noreply.github.com>
* Tests for getting all licenses and single license
wrote test cases for licenses and moved all license urls to main urls.py
Signed-off-by: lf32 <96695352+lf32@users.noreply.github.com>
* Remove printing in tests
Signed-off-by: lf32 <96695352+lf32@users.noreply.github.com>
* Ran make valid successfully and renamed test functions
* Ran `make valid`
* Renamed test functions for licenses
Signed-off-by: lf32 <96695352+lf32@users.noreply.github.com>
* Removed Comment and corrected license path
* Removed Comment
* Chanded licenses/ back to license/
Signed-off-by: lf32 <96695352+lf32@users.noreply.github.com>
* correct variable in license tests
Signed-off-by: lf32 <96695352+lf32@users.noreply.github.com>
* status code updated
* added statuscode HttpResponseNotFound for unknown license
* corrected license tests
* override_settings for auth
Signed-off-by: lf32 <96695352+lf32@users.noreply.github.com>1 parent 40d9fdf commit 74a4b2e
4 files changed
Lines changed: 49 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | | - | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
53 | | - | |
| 54 | + | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
| 144 | + | |
| 145 | + | |
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
0 commit comments