diff --git a/lua/other_modules/mappings/_pytest.lua b/lua/other_modules/mappings/_pytest.lua index 7fd186e..0e2095d 100644 --- a/lua/other_modules/mappings/_pytest.lua +++ b/lua/other_modules/mappings/_pytest.lua @@ -1,13 +1,13 @@ vim.keymap.set('n', ',pa', function() vim.cmd('split') vim.cmd('horizontal resize 7') - vim.cmd.terminal('pytest') + vim.cmd.terminal('python -m pytest') vim.cmd.startinsert() end, { desc = 'Run pytest for all tests' }) vim.keymap.set('n', ',pf', function() vim.cmd('split') vim.cmd('horizontal resize 7') - vim.cmd.terminal('pytest %') + vim.cmd.terminal('python -m pytest %') vim.cmd.startinsert() end, { desc = 'Run pytest for current file' })