Skip to content

Commit 43c46f5

Browse files
committed
would you believe it, more coverage
1 parent 075a0a1 commit 43c46f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/job/test_base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,11 @@ def test_max_slots_hit_int(self):
12971297
job_config = self._make_one()
12981298
job_config._properties["maxSlots"] = int(3)
12991299
self.assertEqual(job_config.max_slots, 3)
1300+
1301+
def test_max_slots_hit_invalid(self):
1302+
job_config = self._make_one()
1303+
job_config._properties["maxSlots"] = object()
1304+
self.assertEqual(job_config.max_slots, None)
13001305

13011306
def test_max_slots_update_in_place(self):
13021307
job_config = self._make_one()

0 commit comments

Comments
 (0)