Commit f5d0549
test(dashboards): Move revision unit tests to model layer
Pruning and field-correctness tests for DashboardRevision.create_for_dashboard
now live in test_dashboard.py, tested directly without going through HTTP.
The endpoint tests are trimmed to only verify the endpoint wires up to the
model correctly — they no longer re-test the model's own behaviour.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 145c279 commit f5d0549
File tree
2 files changed
+56
-33
lines changed- tests/sentry
- dashboards/endpoints
- models
2 files changed
+56
-33
lines changedLines changed: 1 addition & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4014 | 4014 | | |
4015 | 4015 | | |
4016 | 4016 | | |
4017 | | - | |
4018 | 4017 | | |
4019 | 4018 | | |
4020 | 4019 | | |
4021 | 4020 | | |
4022 | 4021 | | |
4023 | | - | |
4024 | | - | |
4025 | | - | |
4026 | | - | |
4027 | | - | |
4028 | | - | |
4029 | | - | |
4030 | | - | |
4031 | | - | |
| 4022 | + | |
4032 | 4023 | | |
4033 | 4024 | | |
4034 | 4025 | | |
| |||
4049 | 4040 | | |
4050 | 4041 | | |
4051 | 4042 | | |
4052 | | - | |
4053 | | - | |
4054 | | - | |
4055 | | - | |
4056 | | - | |
4057 | | - | |
4058 | | - | |
4059 | | - | |
4060 | | - | |
4061 | | - | |
4062 | | - | |
4063 | | - | |
4064 | | - | |
4065 | | - | |
4066 | | - | |
4067 | | - | |
4068 | | - | |
4069 | | - | |
4070 | | - | |
4071 | | - | |
4072 | | - | |
4073 | | - | |
4074 | 4043 | | |
4075 | 4044 | | |
4076 | 4045 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
0 commit comments