home · contact · privacy
Extend tests.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 5 May 2024 00:45:26 +0000 (02:45 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 5 May 2024 00:45:26 +0000 (02:45 +0200)
tests/__pycache__/__init__.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/conditions.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/days.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/misc.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/processes.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/test_days.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/todos.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/utils.cpython-311.pyc [new file with mode: 0644]
tests/__pycache__/versioned_attributes.cpython-311.pyc [new file with mode: 0644]
tests/processes.py
tests/utils.py

diff --git a/tests/__pycache__/__init__.cpython-311.pyc b/tests/__pycache__/__init__.cpython-311.pyc
new file mode 100644 (file)
index 0000000..61bbc59
Binary files /dev/null and b/tests/__pycache__/__init__.cpython-311.pyc differ
diff --git a/tests/__pycache__/conditions.cpython-311.pyc b/tests/__pycache__/conditions.cpython-311.pyc
new file mode 100644 (file)
index 0000000..252bf75
Binary files /dev/null and b/tests/__pycache__/conditions.cpython-311.pyc differ
diff --git a/tests/__pycache__/days.cpython-311.pyc b/tests/__pycache__/days.cpython-311.pyc
new file mode 100644 (file)
index 0000000..fcbd24a
Binary files /dev/null and b/tests/__pycache__/days.cpython-311.pyc differ
diff --git a/tests/__pycache__/misc.cpython-311.pyc b/tests/__pycache__/misc.cpython-311.pyc
new file mode 100644 (file)
index 0000000..edb0671
Binary files /dev/null and b/tests/__pycache__/misc.cpython-311.pyc differ
diff --git a/tests/__pycache__/processes.cpython-311.pyc b/tests/__pycache__/processes.cpython-311.pyc
new file mode 100644 (file)
index 0000000..92b1fcd
Binary files /dev/null and b/tests/__pycache__/processes.cpython-311.pyc differ
diff --git a/tests/__pycache__/test_days.cpython-311.pyc b/tests/__pycache__/test_days.cpython-311.pyc
new file mode 100644 (file)
index 0000000..61f606c
Binary files /dev/null and b/tests/__pycache__/test_days.cpython-311.pyc differ
diff --git a/tests/__pycache__/todos.cpython-311.pyc b/tests/__pycache__/todos.cpython-311.pyc
new file mode 100644 (file)
index 0000000..0369c07
Binary files /dev/null and b/tests/__pycache__/todos.cpython-311.pyc differ
diff --git a/tests/__pycache__/utils.cpython-311.pyc b/tests/__pycache__/utils.cpython-311.pyc
new file mode 100644 (file)
index 0000000..722fd58
Binary files /dev/null and b/tests/__pycache__/utils.cpython-311.pyc differ
diff --git a/tests/__pycache__/versioned_attributes.cpython-311.pyc b/tests/__pycache__/versioned_attributes.cpython-311.pyc
new file mode 100644 (file)
index 0000000..2e15b71
Binary files /dev/null and b/tests/__pycache__/versioned_attributes.cpython-311.pyc differ
index c3b1144de7563d956e5fd3a6d6474cb6180e726a..861600821e5095397be3633cd8cca00e1a9b0742 100644 (file)
@@ -22,6 +22,15 @@ class TestsSansDB(TestCaseSansDB):
             '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
index ccb485ad104cc37ae040a4b144093e69c75b87c0..fbe739d2e002137a4187ca09b19846ea63ccbedf 100644 (file)
@@ -19,11 +19,11 @@ class TestCaseSansDB(TestCase):
     """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: