Commit 478d603
committed
refactor(tavern/_core/pytest/file.py): Improve handling of initial YAML document in test file
- The loop variable `i` has been renamed to `document_idx` to better reflect its purpose, which is to track the index of the YAML document being processed.
- A comment has been added to explain the implicit behavior when the first YAML document has no "stages" but may have other properties like "name".
- The variable `merge_down` is now correctly initialized and used based on the index of the document being processed.1 parent aa5168e commit 478d603
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
| 370 | + | |
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
373 | 374 | | |
374 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
375 | 378 | | |
376 | 379 | | |
377 | 380 | | |
| |||
0 commit comments