@@ -0,0 +1,1700 @@
+# Copyright 2020 Nathan Sommer and Ben Coleman%0A#%0A# This program is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License as published by%0A# the Free Software Foundation, either version 3 of the License, or%0A# (at your option) any later version.%0A#%0A# This program is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%0A%0A%22%22%22%0ATests for get_action_script_and_interpreter() from gkeepcore.action_scripts.%0A%22%22%22%0A%0A%0Afrom gkeepcore.action_scripts import get_action_script_and_interpreter%0A%0A%0Adef test_action_sh_only(tmp_path):%0A    action_sh_path = tmp_path / 'action.sh'%0A    action_sh_path.touch()%0A%0A    script_name, interpreter = get_action_script_and_interpreter(tmp_path)%0A%0A    assert script_name == 'action.sh'%0A    assert interpreter == 'bash'%0A%0A%0Adef test_action_py_only(tmp_path):%0A    action_sh_path = tmp_path / 'action.py'%0A    action_sh_path.touch()%0A%0A    script_name, interpreter = get_action_script_and_interpreter(tmp_path)%0A%0A    assert script_name == 'action.py'%0A    assert interpreter == 'python3'%0A%0A%0Adef test_both_action_sh_and_action_py(tmp_path):%0A    action_sh_path = tmp_path / 'action.sh'%0A    action_sh_path.touch()%0A%0A    action_py_path = tmp_path / 'action.py'%0A    action_py_path.touch()%0A%0A    script_name, interpreter = get_action_script_and_interpreter(tmp_path)%0A%0A    assert script_name == 'action.sh'%0A    assert interpreter == 'bash'%0A

Add test for get_action_script_and_interpreter()