Skip to content

Commit

Permalink
test process_file with suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Dec 1, 2018
1 parent f8e6901 commit e935a32
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,10 @@ def test_process_file():
with h5py.File(likelihood_path, "r") as f:
likelihood = f["likelihood"].value
assert likelihood.shape == (201,)

# suffix
tempdir = tempfile.mkdtemp()
process_file(FG_10SEC_PATH, output_dir=tempdir, suffix="mysuffix")
csv_path = os.path.join(
tempdir, 'BirdVox-scaper_example_foreground_mysuffix_timestamps.csv')
assert os.path.exists(csv_path)

0 comments on commit e935a32

Please sign in to comment.