Skip to content

Commit 16ab59f

Browse files
committed
test: renamed the test module
1 parent 047d02c commit 16ab59f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/DIRAC/WorkloadManagementSystem/Utilities/test/Test_JobManager.py renamed to src/DIRAC/WorkloadManagementSystem/Utilities/test/Test_JobAdministration.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" unit test (pytest) of JobManager service
1+
""" unit test (pytest) of JobAdministration module
22
"""
33

44
from unittest.mock import MagicMock
@@ -22,15 +22,18 @@
2222
([1, 2], "Kill", [1], True, [1]),
2323
([1, 2], "Kill", [2], True, [2]),
2424
([1, 2], "Kill", [], True, []),
25-
([1, 2], "Kill", [1,2], True, [1, 2]),
25+
([1, 2], "Kill", [1, 2], True, [1, 2]),
2626
],
2727
)
2828
def test___kill_delete_jobs(mocker, jobIDs_list, right, filtered_jobs, expected_res, expected_value):
2929
mocker.patch("DIRAC.WorkloadManagementSystem.Utilities.jobAdministration.JobDB", MagicMock())
3030
mocker.patch("DIRAC.WorkloadManagementSystem.Utilities.jobAdministration.TaskQueueDB", MagicMock())
3131
mocker.patch("DIRAC.WorkloadManagementSystem.Utilities.jobAdministration.PilotAgentsDB", MagicMock())
3232
mocker.patch("DIRAC.WorkloadManagementSystem.Utilities.jobAdministration.StorageManagementDB", MagicMock())
33-
mocker.patch("DIRAC.WorkloadManagementSystem.Utilities.jobAdministration.filterJobStateTransition", return_value={"OK": True, "Value": filtered_jobs})
33+
mocker.patch(
34+
"DIRAC.WorkloadManagementSystem.Utilities.jobAdministration.filterJobStateTransition",
35+
return_value={"OK": True, "Value": filtered_jobs},
36+
)
3437

3538
res = kill_delete_jobs(right, jobIDs_list)
3639
assert res["OK"] == expected_res

0 commit comments

Comments
 (0)