Skip to content

Commit 5a9323b

Browse files
committed
test: remove cache dir before running tests
1 parent 7fc2213 commit 5a9323b

File tree

1 file changed

+5
-0
lines changed
  • tests/robotcode/language_server/robotframework/parts

1 file changed

+5
-0
lines changed

tests/robotcode/language_server/robotframework/parts/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import dataclasses
2+
import shutil
23
from pathlib import Path
34
from typing import Any, AsyncIterator, cast
45

@@ -32,6 +33,10 @@
3233
@pytest_asyncio.fixture(scope="package", ids=generate_test_id)
3334
async def protocol(request: Any) -> AsyncIterator[RobotLanguageServerProtocol]:
3435
root_path = Path(Path(__file__).resolve().parent, "data")
36+
robotcode_cache_path = root_path / ".robotcode_cache"
37+
38+
if robotcode_cache_path.exists():
39+
shutil.rmtree(robotcode_cache_path)
3540

3641
server = RobotLanguageServer()
3742
try:

0 commit comments

Comments
 (0)