Skip to content

Commit

Permalink
fix(_pytest): changed run command
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-grigoriev committed Oct 1, 2023
1 parent 521420c commit b684c95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/other_modules/mappings/_pytest.lua
Original file line number Diff line number Diff line change
@@ -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' })

0 comments on commit b684c95

Please sign in to comment.