feat: remove file searching
This commit is contained in:
@@ -41,7 +41,6 @@ end
|
||||
---@async
|
||||
---@return Tree | nil
|
||||
function PythonNeotestAdapter.discover_positions(path)
|
||||
if path and not lib.files.is_dir(path) then
|
||||
local query = [[
|
||||
((function_definition
|
||||
name: (identifier) @test.name)
|
||||
@@ -56,9 +55,6 @@ function PythonNeotestAdapter.discover_positions(path)
|
||||
require_namespaces = get_runner() == "unittest",
|
||||
})
|
||||
end
|
||||
local files = lib.func_util.filter_list(base.is_test_file, lib.files.find({ path }))
|
||||
return lib.files.parse_dir_from_files(path, files)
|
||||
end
|
||||
|
||||
---@param args NeotestRunArgs
|
||||
---@return NeotestRunSpec
|
||||
|
Reference in New Issue
Block a user