Repository navigation
Commit d31c9ec
committed
Keep inline-snapshot disabled when pytest runs in a terminal
`default-flags = ["disable"]` only covers runs whose stdout is not a
terminal. In a terminal outside CI the plugin fell back to its own
`default-flags-tui` default (`create`, `review`), stayed active, and the
locked version raised `AttributeError: ... has no attribute '_meta'` on
every `snapshot(...)` literal that spells the field as `_meta=`.
Set `default-flags-tui` to `disable` as well, so a plain `pytest` run
behaves the same in a terminal, in a pipe and in CI. Snapshots are still
updated with an explicit `--inline-snapshot=create` or `fix`.
Fixes #35441 parent c15566c commit d31c9ec
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
336 | 337 | | |
0 commit comments