Skip to content

Commit 4782ee9

Browse files
committed
debug
1 parent 47f88b9 commit 4782ee9

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ class TestFunction:
5151
class TestsCache:
5252
def __init__(self) -> None:
5353
self.connection = sqlite3.connect(codeflash_cache_db)
54+
logger.debug(f"Connected to tests cache database at {codeflash_cache_db}")
5455
self.cur = self.connection.cursor()
5556

5657
self.cur.execute(
@@ -295,7 +296,6 @@ def _process_single_test_file(
295296
import jedi
296297

297298
jedi_project = jedi.Project(path=project_root_path)
298-
goto_cache = {}
299299
results = []
300300
cache_entries = []
301301

@@ -388,13 +388,8 @@ def _process_single_test_file(
388388
if scope not in test_functions_by_name:
389389
continue
390390

391-
cache_key = (name.full_name, name.module_name)
392391
try:
393-
if cache_key in goto_cache:
394-
definition = goto_cache[cache_key]
395-
else:
396-
definition = name.goto(follow_imports=True, follow_builtin_imports=False)
397-
goto_cache[cache_key] = definition
392+
definition = name.goto(follow_imports=True, follow_builtin_imports=False)
398393
except Exception as e:
399394
logger.debug(str(e))
400395
continue

0 commit comments

Comments
 (0)