alecthomas / voluptuous

CONTRIBUTIONS ONLY: Voluptuous, despite the name, is a Python data validation library.
https://pypi.org/project/voluptuous
BSD 3-Clause "New" or "Revised" License
1.81k stars 219 forks source link

refactor(tests): fix few tests, use pytest.raises, extend raises helper #500

Closed antoni-szych-rtbhouse closed 9 months ago

antoni-szych-rtbhouse commented 9 months ago

Hi, I thought it would be nice to modernize tests a bit:

I have some doubts regarding existing tests if they really test what they say they do, especially test_self_any and test_self_all. However it should be checked by someone with more experience (I haven't used Self-related validation yet myself)