Skip to content

Commit

Permalink
Update test_remote.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Jul 16, 2023
1 parent ffa10a0 commit 4827f44
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions tests/test_remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,25 +50,6 @@ def test_ssh_continous_connection(self):
def test_submit_job_remote(self):
with self.assertRaises(NotImplementedError):
self.remote.submit_job(queue="remote", dependency_list=[])

def test_submit_command(self):
command = self.remote._adapter._submit_command(
queue="remote",
job_name="test",
working_directory="/home/localuser/projects/test",
cores=str(1),
memory_max=str(1),
run_time_max=str(1),
command_str="/bin/true",
)
self.assertEqual(
command,
'python -m pysqa --config_directory /u/share/pysqa/resources/queues/ --submit --queue remote --job_name test --working_directory /home/localuser/projects/test --cores 1 --memory 1 --run_time 1 --command "/bin/true" '
)

def test_get_queue_status_command(self):
command = self.remote._adapter._get_queue_status_command()
self.assertEqual(command, "python -m pysqa --config_directory /u/share/pysqa/resources/queues/ --status")

def test_submit_command(self):
command = self.remote._adapter._submit_command(
Expand Down Expand Up @@ -111,4 +92,4 @@ def test_get_file_transfer(self):
self.assertEqual(
self.remote._adapter._get_file_transfer(file="abc.txt", local_dir="local", remote_dir="test"),
os.path.abspath("abc.txt")
)
)

0 comments on commit 4827f44

Please sign in to comment.