MODFLOW developer tools 1.2.0
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.