# Path: pyjob/torque.py
# class TorqueTask(PortableBatchSystemTask):
#     """TORQUE executable :obj:`~pyjob.task.Task`"""
# 
#     pass


import os
import pytest
from unittest import mock
from pyjob.torque import TorqueTask
            "#PBS -o " + paths[0].replace(".py", ".log"),
            "#PBS -e " + paths[0].replace(".py", ".log"),
            paths[0],
        ]

    def test_10(self, check_requirements_mock):
        check_requirements_mock.return_value = None
        scripts = [pytest.helpers.get_py_script(i, 1) for i in range(1)]
        [s.write() for s in scripts]
        paths = [s.path for s in scripts]
        task = TorqueTask(paths, priority=-1)
        runscript = task._create_runscript()
        pytest.helpers.unlink(paths)
        assert runscript.shebang == "#!/bin/bash"
        assert runscript.content == [
            "#PBS -V",
            "#PBS -N pyjob",
            "#PBS -w " + os.getcwd(),
            "#PBS -p -1",
            "#PBS -n 1",
            "#PBS -o " + paths[0].replace(".py", ".log"),
            "#PBS -e " + paths[0].replace(".py", ".log"),
            paths[0],
        ]

    def test_11(self, check_requirements_mock):
        check_requirements_mock.return_value = None
        scripts = [pytest.helpers.get_py_script(i, 1) for i in range(1)]
        [s.write() for s in scripts]
        paths = [s.path for s in scripts]

# Path: pyjob/torque.py
# class TorqueTask(PortableBatchSystemTask):
#     """TORQUE executable :obj:`~pyjob.task.Task`"""
# 
#     pass


# Path: pyjob/tests/test_torque.py
import os
import pytest
from unittest import mock
from pyjob.torque import TorqueTask

            "#PBS -o " + paths[0].replace(".py", ".log"),
            "#PBS -e " + paths[0].replace(".py", ".log"),
            paths[0],
        ]

    def test_10(self, check_requirements_mock):
        check_requirements_mock.return_value = None
        scripts = [pytest.helpers.get_py_script(i, 1) for i in range(1)]
        [s.write() for s in scripts]
        paths = [s.path for s in scripts]
        task = TorqueTask(paths, priority=-1)
        runscript = task._create_runscript()
        pytest.helpers.unlink(paths)
        assert runscript.shebang == "#!/bin/bash"
        assert runscript.content == [
            "#PBS -V",
            "#PBS -N pyjob",
            "#PBS -w " + os.getcwd(),
            "#PBS -p -1",
            "#PBS -n 1",
            "#PBS -o " + paths[0].replace(".py", ".log"),
            "#PBS -e " + paths[0].replace(".py", ".log"),
            paths[0],
        ]

    def test_11(self, check_requirements_mock):
        check_requirements_mock.return_value = None
        scripts = [pytest.helpers.get_py_script(i, 1) for i in range(1)]
        [s.write() for s in scripts]
        paths = [s.path for s in scripts]

        task = TorqueTask(paths, extra=["-l mem=100", "-r y"])