Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fcf211872a | ||
|
|
406fd3db4a |
@@ -110,10 +110,15 @@ end
|
|||||||
local function scan_test_function_pattern(runner, config, python_command)
|
local function scan_test_function_pattern(runner, config, python_command)
|
||||||
local test_function_pattern = "^test"
|
local test_function_pattern = "^test"
|
||||||
if runner == "pytest" and config.pytest_discovery then
|
if runner == "pytest" and config.pytest_discovery then
|
||||||
|
<<<<<<< HEAD
|
||||||
local cmd = vim
|
local cmd = vim
|
||||||
.iter({ python_command, M.get_script_path(), "--pytest-extract-test-name-template" })
|
.iter({ python_command, M.get_script_path(), "--pytest-extract-test-name-template" })
|
||||||
:flatten()
|
:flatten()
|
||||||
:totable()
|
:totable()
|
||||||
|
=======
|
||||||
|
local cmd = vim.iter({ python_command, M.get_script_path(), "--pytest-extract-test-name-template" }):flatten()
|
||||||
|
:totable()
|
||||||
|
>>>>>>> 51c453d (feat: remove plenary)
|
||||||
local _, data = lib.process.run(cmd, { stdout = true, stderr = true })
|
local _, data = lib.process.run(cmd, { stdout = true, stderr = true })
|
||||||
|
|
||||||
for line in vim.gsplit(data.stdout, "\n", true) do
|
for line in vim.gsplit(data.stdout, "\n", true) do
|
||||||
|
|||||||
Reference in New Issue
Block a user