diff --git a/testing/conftest.py b/testing/conftest.py index 16837b2..efc1795 100644 --- a/testing/conftest.py +++ b/testing/conftest.py @@ -25,7 +25,7 @@ def convert(path_test, path_tja_tmp, entry_point, err_msg=None): if not err_msg: api_convert(argv=[path_tja_tmp]) else: - with pytest.raises(ValueError) as e: + with pytest.raises(Exception) as e: api_convert(argv=[path_tja_tmp]) tb = "".join(traceback.format_tb(e.tb)) diff --git a/testing/data/dummy_tjas/missing_balloon.tja b/testing/data/dummy_tjas/missing_balloon.tja new file mode 100644 index 0000000..9b002b2 --- /dev/null +++ b/testing/data/dummy_tjas/missing_balloon.tja @@ -0,0 +1,17 @@ +// This song is missing the `BALLOON:` metadata +BPM:120 +OFFSET:-1.00 + +COURSE:Oni +LEVEL:10 +BALLOON: +SCOREINIT:400 +SCOREDIFF:100 + +#START +1020304, +5000008, +6000008, +7000008, +9000008, +#END diff --git a/testing/test_command_support.py b/testing/test_command_support.py index 54c3305..7af7d07 100644 --- a/testing/test_command_support.py +++ b/testing/test_command_support.py @@ -7,7 +7,8 @@ from conftest import convert @pytest.mark.parametrize('id_song,err_msg', [ - ['basic_song', None] + ['basic_song', None], + ['missing_balloon', "Not enough values for 'BALLOON:"] ]) def test_expected_errors(id_song, err_msg, tmp_path, entry_point): # Define the testing directory