We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d897463 commit 045e2d6Copy full SHA for 045e2d6
1 file changed
tests/test_cli_utils.py
@@ -11,6 +11,7 @@
11
from vectorcode.cli_utils import (
12
CliAction,
13
Config,
14
+ LockManager,
15
PromptCategory,
16
QueryInclude,
17
cleanup_path,
@@ -553,3 +554,11 @@ def test_shtab():
553
554
.stderr.read()
555
.decode()
556
) == ""
557
+
558
559
+@pytest.mark.asyncio
560
+async def test_filelock():
561
+ manager = LockManager()
562
+ with tempfile.TemporaryDirectory() as tmp_dir:
563
+ manager.get_lock(tmp_dir)
564
+ assert os.path.isfile(os.path.join(tmp_dir, "vectorcode.lock"))
0 commit comments