bids-standard / pybv

A lightweight I/O utility for the BrainVision data format, written in Python.

Home Page:https://pybv.readthedocs.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maint: overhaul the format / resolution / unit test

sappelhoff opened this issue · comments

We have one parametrized test that covers many cases:

@pytest.mark.parametrize("format", ["binary_float32"])
@pytest.mark.parametrize("resolution", resolutions)
@pytest.mark.parametrize("unit", ["V", "mV", "uV", "µV", "nV"])
def test_unit_resolution(format, resolution, unit):

the test should be split up into smaller and more targeted tests, including explicit cases that should fail, and explicit cases that should pass.

See: #62 (comment)