feat(snapshots): add snapshot fixtures, remove pandas fixture#151
Conversation
|
@mwtoews I was mainly wondering what you thought of the optional import decision here. But I think it's probably best to keep using |
|
@wpbonelli no strong opinions so far, I'm just finding time to look further at the methods. One further idea is to also support compressed array ".npz" using numpy.savez_compressed. |
|
Thanks @mwtoews for the suggestion, def my_test(multi_array_snapshot):
...
arrays = {
"head": ...
"budget": ...
}
assert arrays == multi_array_snapshotwhich is consistent with |
|
Looks like with npz files we get inconsistent binary encodings. Strange that it's only npz files and not npy files. |
|
I will merge as-is so we can use this for PRT tests, but would be ideal to support snapshots of multiple arrays eventually. |
use_pandasfixture, originally meant for use in flopy tests for pandas support but never used and probably not needed, as flopyuse_pandasflags will be removed eventually