Skip to content

Releases: yugokato/pytest-data-loader

v0.9.0

Choose a tag to compare

@yugokato yugokato released this 20 May 20:37
49cdc04

New Features

  • Enhanced loader path argument handling:
    • Add support for glob pattern paths for @parametrize and @parametrize_dir loaders by @yugokato in #55
    • Add support for environment variables in paths by @yugokato in #67
  • Add data_loader fixture to support dynamic paths by @yugokato in #58
  • Enhanced loader options:
    • Add support for marks option to @load loader by @yugokato in #63
    • Add support for idx argument for post-filter loader callable options by @yugokato in #70
    • Add support for *args in loader callable options by @yugokato in #71
    • Change read_options for @parametrize_dir loader to also accept dict by @yugokato in #85
  • Add compression-aware loading support for .gz, .bz2, and .xz files by @yugokato in #84
  • Add session-level file cache to reduce repeated file reads across tests by @yugokato in #88, #89
  • Add new INI options by @yugokato in #75, #86, #88, #90:
    • data_loader_on_missing
    • data_loader_default_encoding
    • data_loader_max_cache_size
    • data_loader_max_open_files

Breaking Changes

  • Change data loader callable option names by @yugokato in #66

Misc Changes

  • Update automatic read mode detection logic by @yugokato in #57
  • Add symlink ELOOP check to glob paths by @yugokato in #61
  • Change error note added in pytest_generate_tests() to show actual data loader def by @yugokato in #64

Full Changelog: v0.8.0...v0.9.0

v0.8.0

Choose a tag to compare

@yugokato yugokato released this 14 Apr 17:48
4ef59d7

What's Changed

  • Add built-in JSONL support with default reader by @yugokato in #49
  • Add unified error message for loader function call error by @yugokato in #50
  • Add support of multiple paths for @parametrize and @parametrize_dir by @yugokato in #51
  • Add support of id_func to @parametrize_dir loader by @yugokato in #52
  • Add support of stacking multiple data loaders by @yugokato in #53

Full Changelog: v0.7.2...v0.8.0

v0.7.2

Choose a tag to compare

@yugokato yugokato released this 21 Feb 01:08
3da4b8c

Bug fixes

  • Raise explicit error on directory traversal cycles when recursively loading directory files by @yugokato in #46

Full Changelog: v0.7.1...v0.7.2

v0.7.1

Choose a tag to compare

@yugokato yugokato released this 20 Feb 21:25
a46816d

Bug fixes

  • Raise explicit error on circular symlinks by @yugokato in #44

Full Changelog: v0.7.0...v0.7.1

v0.7.0

Choose a tag to compare

@yugokato yugokato released this 22 Dec 19:46
3212d1f

What's Changed

  • Add recursive option to parametrize_dir loader by @yugokato in #38
  • Change the default param ID to be a relative or absolute path instead of a file name by @yugokato in #39

Full Changelog: v0.6.0...v0.7.0

v0.6.0

Choose a tag to compare

@yugokato yugokato released this 09 Nov 19:34
e7ae16b

What's Changed

Full Changelog: v0.5.0...v0.6.0

v0.5.0

Choose a tag to compare

@yugokato yugokato released this 29 Oct 17:06
f9aa49d

New Features

Full Changelog: v0.4.1...v0.5.0

v0.4.1

Choose a tag to compare

@yugokato yugokato released this 22 Oct 15:45
54d86de

What's Changed

  • Remove restriction of parametrizer_func usage when file_reader is given to the @parametrize loader by @yugokato in #22

Full Changelog: v0.4.0...v0.4.1

v0.4.0

Choose a tag to compare

@yugokato yugokato released this 21 Oct 23:52
fee2c68

New Features

  • Add support of specifying file read options by @yugokato in #20
  • Add support of specifying file readers by @yugokato in #21

Breaking Changes

  • Removed force_binary option in favor of more flexible way for specifying file read options

Full Changelog: v0.3.0...v0.4.0

v0.3.0

Choose a tag to compare

@yugokato yugokato released this 16 Oct 18:21
cad6bfb

New Features

  • Remove the restriction of id_func option in the @parametrize loader when lazy loading is enabled by @yugokato in #15
  • Add maker_func option to @parametrize and @parametrize_dir loaders by @yugokato in #16

Bug Fixes

  • Fix file loader cache logic to work in parallel testing by @yugokato in #13

Miscellaneous Changes

  • Remove automatic repr() on the id specified in @load by @yugokato in #11
  • Change to always validate provided loader function definition early during collection phase (As part of #16)

Full Changelog: v0.2.0...v0.3.0