From e4389ab7f7b06df53feaa2f4f96eff95c96a5d79 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 10 Jul 2023 15:18:11 -0700 Subject: [PATCH] add test in drop --- tests/test_commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_commands.py b/tests/test_commands.py index 642b4e561..297fd9a30 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -105,6 +105,9 @@ class TestCommands(TestCase): self.assertIn(str(Path("test_dir/test_file2.txt").resolve()), coder.abs_fnames) self.assertIn(str(Path("test_dir/another_dir/test_file.txt").resolve()), coder.abs_fnames) + commands.cmd_drop("test_dir") + self.assertEqual(len(coder.abs_fnames), 0) + def test_cmd_drop_with_glob_patterns(self): # Initialize the Commands and InputOutput objects io = InputOutput(pretty=False, yes=True)