Releases: shawnbrown/datatest
Releases · shawnbrown/datatest
0.8.3
- New module-level functions:
validate()
andis_valid()
. DataQuery
selections now default to alist
type when no outer-container is specified.- New
DataQuery.apply()
method for group-wise function application. DataSource.fieldnames
attribute is now atuple
(was alist
).- The
ValidationError
repr now prints a trailing comma with the last item (for ease of copy-and-paste work flow). - Revised sequence validation behavior provides more precise differences.
- New truncation support for
ValidationError
s with long lists of differences. - Excess differences in
allowed_specific()
definitions no longer trigger test failures. - New support for user-defined functions to narrow
DataSource
selections. - Better traceback hiding for pytest.
- Fix bug in
DataQuery.map()
method--now convertsset
types into lists.
0.8.2
- Implement Boolean composition for
allowed_specific()
context manager. - Add proper
__repr__()
support to DataSource and DataQuery. - Make sure DataQuery fails early if bad "select" syntax is used or if unknown columns are selected.
- Add
__copy__()
method to DataQuery. - Change parent class of differences so they no longer inherit from Exception (this confused their intended use).
- Restructure documentation for ease of reference.
0.8.1
- Updated DataQuery select behavior to fail immediately when invalid syntax is used (rather than later when attempting to execute the query).
- Improved error messages to better explain what went wrong.
0.8.0
- Replaces old assertion methods with a single, smarter assertValid() method.
- DataQuery implements query optimization and uses a simpler and more expressive syntax.
- Allowances and errors have been reworked to be more expressive.
- Allowances are now composeable with bit-wise "&" and "|" operators.
0.7.0.dev2
- Removes some of the internal magic and renames data assertions to more
clearly indicate their intended use. - Restructures data allowances to provide more consistent
parameters and more flexible usage. - Adds new method to assert unique values.
- Adds full **fmtparams support for CSV handling.
- Fixes comparison and allowance behavior for None vs. zero.
0.6.0.dev1
First public release.