From c0aa63facc4c93c34ef276cd65ec76bc12ecad29 Mon Sep 17 00:00:00 2001 From: Athitheya Gobinathan Date: Tue, 30 Jul 2024 18:13:37 -0400 Subject: [PATCH] docs: add docstring for patch_cli --- tests/decryption/test_decrypt.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/decryption/test_decrypt.py b/tests/decryption/test_decrypt.py index 2a0c84d..52b4e97 100644 --- a/tests/decryption/test_decrypt.py +++ b/tests/decryption/test_decrypt.py @@ -153,6 +153,7 @@ def test_permission_error(self, tmp_path): @contextlib.contextmanager def patch_cli(args): + """Context manager that patches sys.argv.""" with mock.patch("sys.argv", args): yield