'effort': 1.0})
+class TestsSansDBProcessStep(TestCaseSansDB):
+ """Module tests not requiring DB setup."""
+ checked_class = ProcessStep
+
+ def test_ProcessStep_id_setting(self) -> None:
+ """Test .id_ being set and its legal range being enforced."""
+ self.check_id_setting(2, 3, 4)
+
+
class TestsWithDB(TestCaseWithDB):
"""Module tests requiring DB setup."""
checked_class = Process
"""Tests requiring no DB setup."""
checked_class: Any
- def check_id_setting(self) -> None:
+ def check_id_setting(self, *args: Any) -> None:
"""Test .id_ being set and its legal range being enforced."""
with self.assertRaises(HandledException):
- self.checked_class(0)
- obj = self.checked_class(5)
+ self.checked_class(0, *args)
+ obj = self.checked_class(5, *args)
self.assertEqual(obj.id_, 5)
def check_versioned_defaults(self, attrs: dict[str, Any]) -> None: