Skip to content

Commit

Permalink
Merge branch 'NeuralEnsemble:master' into intan-binary
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Sep 17, 2023
2 parents 818479f + 354c8d9 commit ae54d92
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions neo/test/rawiotest/test_get_rawio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from neo.rawio import get_rawio_class
from pathlib import Path
from tempfile import TemporaryDirectory


def test_get_rawio_class():
# use plexon io suffix for testing here
non_existant_file = Path('non_existant_folder/non_existant_file.plx')
non_existant_file.unlink(missing_ok=True)
ios = get_rawio_class(non_existant_file)

assert ios

# cleanup
non_existant_file.unlink(missing_ok=True)


def test_get_rawio_class_nonsupported_rawio():

non_existant_file = Path('non_existant_folder/non_existant_file.fake')
non_existant_file.unlink(missing_ok=True)
ios = get_rawio_class(non_existant_file)

assert ios is None

# cleanup
non_existant_file.unlink(missing_ok=True)

0 comments on commit ae54d92

Please sign in to comment.