From 603b049ec8ff05a8af09c657cb4a68b3d7a0fce9 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 6 Feb 2023 16:29:06 +0900 Subject: [PATCH] Update tests --- tests/test_change_errors.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/test_change_errors.py b/tests/test_change_errors.py index c407eda..7b5dea0 100644 --- a/tests/test_change_errors.py +++ b/tests/test_change_errors.py @@ -3,21 +3,17 @@ import re from soundchanger.change import apply def test_error_in_change(): - # with pytest.raises(ValueError, match=re.escape("Change is not a valid sound change. (Missing character '>')")): with pytest.raises(ValueError, match=re.escape("Change is not a valid sound change.")): apply('', '', ignore_errors=False) def test_error_split(): - # with pytest.raises(ValueError, match=re.escape("Change a>b/c/d is not a valid sound change. (More than one '/' character)")): with pytest.raises(ValueError, match=re.escape("Change a>b/c/d is not a valid sound change.")): apply('a>b/c/d', '', ignore_errors=False) def test_error_in_environment(): - # with pytest.raises(ValueError, match=re.escape("Environment c is not a valid environment. (Character '_' should exist exactly once)")): with pytest.raises(ValueError, match=re.escape("Change a>b/c is not a valid sound change.")): apply('a>b/c', '', ignore_errors=False) def test_no_change_from(): - # with pytest.raises(ValueError, match=re.escape("Nothing to change from.")): with pytest.raises(ValueError, match=re.escape("Change >b is not a valid sound change.")): apply('>b', '', ignore_errors=False)