Add snake_case assertion functions and standalone assertions functions.
Review Request #11933 — Created Jan. 18, 2022 and submitted — Latest diff uploaded
SpyAgency
now has snake_case versions of all the assertion functions,
which is more compliant with most functions in Python, outside of the
unittest
assertion functions.This is largely to help kgb feel more natural in testing environments
not based onunittest
(like pytest).Each
assert_*
function is also available as standalone functions in
thekgb.asserts
module, allowing use without needing to explicitly
create or mix in aSpyAgency
.
Unit tests pass for all supported versions of Python.