str0zzapreti / pytest-retry

A simple plugin for retrying flaky tests in CI environments
MIT License
27 stars 6 forks source link

hotfix: ensure attempt storage is always accessible #2

Closed str0zzapreti closed 1 year ago

str0zzapreti commented 1 year ago

Instead of making the user get(attempts_key, {default_val}) from the stash, ensure it is always available with a slight tweak to the logic. A couple of cosmetic changes as well