Skip to content

Commit

Permalink
tests: test HTML generation for all ABF files
Browse files Browse the repository at this point in the history
  • Loading branch information
swharden committed Aug 2, 2023
1 parent a9a2b0f commit c563830
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,20 @@ def test_userList_isExpectedValue():
assert pyabf.ABF("data/abfs/2020_03_02_0000.abf").userList == [
-200.0, -150.0, -100.0, -50.0, 0.0, 25.0, 50.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 500.0, 600.0]


@pytest.mark.parametrize("abfPath", allABFs)
def test_headerText(abfPath):
abf = pyabf.ABF(abfPath)

# skip one file that warns about a missing protocol file
if abfPath.endswith("H19_29_150_11_21_01_0011.abf"):
return

abf = pyabf.ABF(abfPath, loadData=False)

text = abf.headerText
assert isinstance(text, str)
assert len(text)
assert len(text)

html = abf.headerHTML
assert isinstance(html, str)
assert len(html)

0 comments on commit c563830

Please sign in to comment.