Commit a2d8cdc
committed
Improve tests for API prefix
This adds an API prefix to `test_server_thing_descriptions` and fixes the expected URLs so the test no longer fails. Form URLs now include the API prefix (and the `base` of thing descriptions should just be the server and port).
I've also added a further test that the Thing Descriptions returned individually (by e.g. `/mything/`) are identical to those returned by `/thing_descriptions/`. This PR is the second time I've seen inconsistencies there, and this test should help eliminate them.1 parent e42e5dc commit a2d8cdc
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
66 | | - | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | | - | |
| 72 | + | |
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
| 133 | + | |
0 commit comments