def test_counter(filename): count, time = counter(filename, "dxdy") assert count.size == time.size assert count.sum() == 115
def test_counter(): count, time = counter(h5fn, "dxdy") assert count.size == time.size assert count.sum() == 113
def test_missing(tmp_path): with pytest.raises(FileNotFoundError): counter(tmp_path, "foo") with pytest.raises(KeyError): counter(h5fn, "foo")
def test_counter(filename, key, total): count, time = counter(filename, key) assert count.size == time.size assert count.sum() == total