Skip to content

Releases: shawnbrown/datatest

0.8.3

26 Nov 15:27
Compare
Choose a tag to compare
  • New module-level functions: validate() and is_valid().
  • DataQuery selections now default to a list type when no outer-container is specified.
  • New DataQuery.apply() method for group-wise function application.
  • DataSource.fieldnames attribute is now a tuple (was a list).
  • 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 ValidationErrors 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 converts set types into lists.

0.8.2

11 Jun 23:46
Compare
Choose a tag to compare
  • 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

31 May 15:40
Compare
Choose a tag to compare
  • 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

31 May 03:17
Compare
Choose a tag to compare
  • 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

03 Aug 01:07
Compare
Choose a tag to compare
  • 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

29 May 16:32
Compare
Choose a tag to compare

First public release.