Skip to content

Commit

Permalink
Merge pull request #31 from voidnologo/master
Browse files Browse the repository at this point in the history
Update vim_python_test_runner.vim
  • Loading branch information
JarrodCTaylor committed Jan 2, 2020
2 parents a1b0bef + db7b8ce commit 4d433f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vim_python_test_runner.vim
Expand Up @@ -40,7 +40,7 @@ def run_desired_command_for_os(command_to_run):
if "nose" in vim.eval("a:command_to_run") or "nose" in command_to_run:
# Run nosetests for Python.
vim.command("{0} 2>&1 | tee /tmp/test_results.txt".format(command_to_run))
if "pytest" in vim.eval("a:command_to_run") or "pytest" in command_to_run:
elif "pytest" in vim.eval("a:command_to_run") or "pytest" in command_to_run:
# Run pytests for Python.
vim.command("{0} 2>&1 | tee /tmp/test_results.txt".format(command_to_run))
else:
Expand Down

0 comments on commit 4d433f1

Please sign in to comment.