From e516533501186baf66f9a50a2f4ff3ae66163ec6 Mon Sep 17 00:00:00 2001 From: Vincent Lostanlen Date: Wed, 28 Nov 2018 13:23:12 -0500 Subject: [PATCH] pytest non audio existing filepath --- tests/test_core.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_core.py b/tests/test_core.py index b0c30cd..ee06d94 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -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)