xlcnd / isbnlib

python library to validate, clean, transform and get metadata of ISBN strings (for devs).
Other
229 stars 30 forks source link

Test modification #100

Closed XinyuLiu5566 closed 2 years ago

XinyuLiu5566 commented 2 years ago

when running pytest --flake-finder to find possible flaky tests, the test test_cache_del() run multiple times, the key was deleted in the previous run so if we run it again it will throw an error. It also fails if only run this specific function without running previous tests. So it is better to assign key-value pair right before the del statement.

xlcnd commented 2 years ago

Great! Thanks.