Skip to content

MODFLOW developer tools 1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Sep 01:09
· 54 commits to main since this release
ccf47eb

Tabular data is commonly represented in Python with numpy recarrays and pandas dataframes. User-facing APIs often accept either, converting between them internally if necessary.

To streamline testing of projects which support both recarrays and dataframes, introduce a --pandas (short -P) pytest CLI option accepting values: yes, no, random. This controls a boolean use_pandas fixture, which can be requested by test functions to condition how data is provided to the module under test.

New features

  • feat(fixtures): Add use_pandas pytest fixture and --pandas CLI arg (#112). Committed by wpbonelli on 2023-09-12.