Skip to content

Commit

Permalink
pytest non audio existing filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Lostanlen committed Nov 28, 2018
1 parent a156548 commit e516533
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,10 @@ def test_get_output_path():


def test_get_process_file():
# non-existing path
invalid_filepath = 'path/to/a/nonexisting/file.wav'
pytest.raises(BirdVoxDetectError, process_file, invalid_filepath)

# non-audio path
nonaudio_existing_filepath = 'test_core.py'
pytest.raises(BirdVoxDetectError, process_file, nonaudio_existing_filepath)

0 comments on commit e516533

Please sign in to comment.