Skip to content

Commit

Permalink
t1006: adjust test description
Browse files Browse the repository at this point in the history
Problem: One of the descriptions of one of the unit tests in
t1006_job_archive.py is incorrectly stating that one of the function
calls should raise an error, but this is not the case; it should just
return a list of length 0.

Adjust the test description to more accurately explain what the expected
behavior is.
  • Loading branch information
cmoussa1 committed Oct 31, 2024
1 parent 83c0c42 commit 443c282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/python/t1006_job_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_03_after_start_time_all(self):
self.assertEqual(len(job_records), 18)

# passing a timestamp after all of the start time
# of all the completed jobs should return a failure message
# of all the completed jobs should return no jobs
@mock.patch("time.time", mock.MagicMock(return_value=11000000))
def test_04_after_start_time_none(self):
my_dict = {"after_start_time": time.time()}
Expand Down

0 comments on commit 443c282

Please sign in to comment.