Skip to content

Commit 42af1f4

Browse files
committed
my_state.json
1 parent ec54faf commit 42af1f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/bin/fake_squeue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def load_state(file_path):
7777
# "squeue -t all -j " f"{','.join(job_ids)} " "-o '%i,%T'"
7878
job_ids = argv[4].split(',')
7979

80-
state_file_path = join("sequence_processing_pipeline", "scripts",
80+
state_file_path = join("tests", "bin",
8181
"my_state.json")
8282

8383
state = generate_output(job_ids)

tests/test_Job.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def test_query_slurm(self):
155155
copyfile(foo, squeue_path)
156156
chmod(squeue_path, 0o755)
157157
self.remove_these.append(squeue_path)
158-
self.remove_these.append(join(package_root, 'scripts',
158+
self.remove_these.append(join(package_root, 'tests', 'bin',
159159
'my_state.json'))
160160

161161
job_ids = ['1234567', '1234568', '1234569', '1234570']
@@ -215,7 +215,7 @@ def test_query_slurm_single_job(self):
215215
copyfile(foo, squeue_path)
216216
chmod(squeue_path, 0o755)
217217
self.remove_these.append(squeue_path)
218-
self.remove_these.append(join(package_root, 'scripts',
218+
self.remove_these.append(join(package_root, 'tests', 'bin',
219219
'my_state.json'))
220220

221221
job_ids = ['1234567']
@@ -259,7 +259,7 @@ def test_wait_on_job_ids(self):
259259
copyfile(foo, squeue_path)
260260
chmod(squeue_path, 0o755)
261261
self.remove_these.append(squeue_path)
262-
self.remove_these.append(join(package_root, 'scripts',
262+
self.remove_these.append(join(package_root, 'tests', 'bin'
263263
'my_state.json'))
264264

265265
job_ids = ['1', '2', '3', '4']

0 commit comments

Comments
 (0)