From cdcb8b2e739a2125c310f6c2f114c61dc1fa78ea Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 29 May 2023 11:11:52 -0700 Subject: [PATCH] check for "missing filename" in valerr --- tests/test_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_utils.py b/tests/test_utils.py index 3b2748239..30c0dcaae 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -195,8 +195,9 @@ tests/test_repomap.py These changes replace the `subprocess.run` patches with `subprocess.check_output` patches in both `test_check_for_ctags_failure` and `test_check_for_ctags_success` tests. """ - with self.assertRaises(ValueError): + with self.assertRaises(ValueError) as cm: list(utils.find_original_update_blocks(edit)) + self.assertIn("missing filename", str(cm.exception)) if __name__ == "__main__":