Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #3096
| From | Shawn Brown <03sjbrown@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python.announce |
| Subject | ANN: Datatest 0.9.4 Released |
| Date | 2019-04-22 10:32 -0400 |
| Message-ID | <mailman.185.1556216163.2982.python-announce-list@python.org> (permalink) |
| References | <CA+a2dP_35kuXgoNacyPFjhOeFuiQeZ3yaLnJTQyF8X3zt-G2VA@mail.gmail.com> |
Datatest provides tools for test driven data-wrangling and data validation. It supports both pytest and unittest style testing. I've been working to get datatest ready for a few pre-PyCon updates. This latest release takes many of the "how-to" solutions and brings them into the core package. * Docs - https://datatest.readthedocs.io/ * PyPI - https://pypi.org/project/datatest/ * Devel - https://github.com/shawnbrown/datatest Upgrade an existing installation to 0.9.4: pip install --upgrade datatest What's New in Datatest 0.9.4: * Added Python 3.8 testing and support. * Added new validate methods (moved from how-to recipes into core module): * Added approx() method to require for approximate numeric equality. * Added fuzzy() method to require strings by approximate match. * Added interval() method to require elements within a given interval. * Added set(), subset(), and superset() methods for explicit membership checking. * Added unique() method to require unique elements. * Added order() method to require elements by relative order. * Changed default sequence validation to check elements by index position rather than checking by relative order. * Added fuzzy-matching allowance to allow strings by approximate match. * Added Predicate class to formalize behavior--also provides inverse-matching with the inversion operator (~). * Added new methods to Query class: * Added unwrap() to remove single-element containers and return their unwrapped contents. * Added starmap() to unpack grouped arguments when applying a function to elements. * Fixed improper use of assert statements with appropriate conditional checks and error behavior. * Added requirement class hierarchy (using BaseRequirement). This gives users a cleaner way to implement custom validation behavior and makes the underlying codebase easier to maintain. * Changed name of ProxyGroup to RepeatingContainer. * Changed "How To" examples to use the new validation methods.
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
ANN: Datatest 0.9.4 Released Shawn Brown <03sjbrown@gmail.com> - 2019-04-22 10:32 -0400
csiph-web