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