diff --git a/backend/condition/tests/parsing/test_parsing_factory.py b/backend/condition/tests/parsing/test_parsing_factory.py index dc2949f0..4e373a12 100644 --- a/backend/condition/tests/parsing/test_parsing_factory.py +++ b/backend/condition/tests/parsing/test_parsing_factory.py @@ -1,3 +1,5 @@ +import pytest + from backend.condition.parsing.factory import select_parser def test_selects_lbwf_parser(): @@ -9,4 +11,12 @@ def test_selects_lbwf_parser(): actual_class_name = select_parser(file_path_str).__class__.__name__ # assert - assert expected_class_name == actual_class_name \ No newline at end of file + assert expected_class_name == actual_class_name + +def test_unknown_filepath_raises_value_error(): + # arrange + file_path_str = "unkown/Example Asset Data.xlsx" + + # act + assert + with pytest.raises(ValueError): + select_parser(file_path_str) \ No newline at end of file