Repository navigation
Commit 720c2cd
committed
fix(provider-tck): read the canonical count from the assets, not from a test
The base branch followed the conformance assets to open-feature/spec@15fe861,
which takes the canonical set from twenty-nine scenarios to forty. Three
expectations here restated the old number and one declaration claimed a
capability the provider behind InProcessControl does not have.
- test_canonical_set derived nothing: two message assertions and one length
assertion each named 29. The count now comes from canonical_scenarios() --
the same parse the guard itself runs -- so adding a canonical scenario does
not require editing a test that exists to notice the addition. Appendix F
makes that the rule, and a suite whose own tests have to be edited to follow
the assets is a suite that will be edited to agree with them.
- test_the_canonical_set_is_read_from_the_packaged_assets would have become
vacuous if it compared canonical_scenarios() to itself, so it is measured
against what pytest-bdd actually collected in the unfiltered run, less the
three scenarios the generated extension contributes. That pins the parse to
the runner rather than to a literal.
- The generated adoptions in test_report declared NUMERIC_COERCION. The two
lossless scenarios the new assets add are exactly the ones that catch a
provider which does not coerce, and the provider behind InProcessControl does
not: they failed. LARGE_INTEGERS is declared instead -- honest for a Python
int, and still a third declared capability, which is all those tests needed.
The declaration is corrected rather than the assertion weakened; finding 3
in the README is the same call for the in-memory self-tests.
The README's figures follow: the self-test total, the example report line, the
per-step status counts and the partial-run transcript are all re-measured.
Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>1 parent 3fce71e commit 720c2cd
3 files changed
Lines changed: 59 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
366 | | - | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
375 | | - | |
| 374 | + | |
| 375 | + | |
376 | 376 | | |
377 | 377 | | |
378 | | - | |
379 | | - | |
| 378 | + | |
| 379 | + | |
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | | - | |
| 403 | + | |
| 404 | + | |
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| |||
495 | 495 | | |
496 | 496 | | |
497 | 497 | | |
498 | | - | |
| 498 | + | |
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
116 | 123 | | |
117 | 124 | | |
118 | 125 | | |
119 | 126 | | |
120 | 127 | | |
121 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
122 | 137 | | |
123 | 138 | | |
124 | 139 | | |
| |||
212 | 227 | | |
213 | 228 | | |
214 | 229 | | |
215 | | - | |
216 | | - | |
| 230 | + | |
| 231 | + | |
217 | 232 | | |
218 | 233 | | |
219 | 234 | | |
220 | 235 | | |
221 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
222 | 240 | | |
223 | 241 | | |
224 | 242 | | |
| |||
248 | 266 | | |
249 | 267 | | |
250 | 268 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
255 | 272 | | |
256 | 273 | | |
257 | 274 | | |
258 | 275 | | |
259 | | - | |
| 276 | + | |
260 | 277 | | |
261 | 278 | | |
262 | 279 | | |
263 | 280 | | |
264 | 281 | | |
265 | 282 | | |
266 | 283 | | |
267 | | - | |
268 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
269 | 293 | | |
270 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
271 | 299 | | |
272 | 300 | | |
273 | 301 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
141 | 148 | | |
142 | 149 | | |
143 | 150 | | |
| |||
588 | 595 | | |
589 | 596 | | |
590 | 597 | | |
591 | | - | |
| 598 | + | |
592 | 599 | | |
593 | 600 | | |
594 | 601 | | |
| |||
873 | 880 | | |
874 | 881 | | |
875 | 882 | | |
876 | | - | |
| 883 | + | |
877 | 884 | | |
878 | 885 | | |
879 | 886 | | |
| |||
0 commit comments