Commit 802b431
committed
Address PR #1373 review: fix CI test failure + drop redundant comments
Test fix: graphql_jwt's @login_required wrapper requires a ResolveInfo
arg (uses isinstance check). Spec the MagicMock with ResolveInfo so the
decorator passes through to the wrapped guard. Imported ResolveInfo
from graphene (not graphql).
Style: dropped two inline 'subclasses must override' comments on
IOSettings fields. The ClassVar[Optional[type[...]]] = None annotation
already signals the intent and _require_io_setting documents the guard.1 parent 25f5dab commit 802b431
2 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
| |||
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
151 | | - | |
152 | | - | |
153 | 149 | | |
154 | 150 | | |
155 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1264 | 1264 | | |
1265 | 1265 | | |
1266 | 1266 | | |
| 1267 | + | |
| 1268 | + | |
1267 | 1269 | | |
1268 | 1270 | | |
1269 | 1271 | | |
1270 | 1272 | | |
1271 | 1273 | | |
1272 | 1274 | | |
1273 | 1275 | | |
1274 | | - | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
1275 | 1281 | | |
1276 | 1282 | | |
1277 | 1283 | | |
| |||
0 commit comments