home · contact · privacy
Minor test code clean-up. master
authorChristian Heller <c.heller@plomlompom.de>
Tue, 24 Dec 2024 08:22:43 +0000 (09:22 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 24 Dec 2024 08:22:43 +0000 (09:22 +0100)
scripts/pre-commit
tests/processes.py

index e4480354be0edab044bc69d5fada5ab840046dfa..7abafb9cd9de85b4790b659cf2cc22fa13353db7 100755 (executable)
@@ -1,6 +1,5 @@
 #!/bin/sh
 set -e
-# for dir in $(echo 'tests'); do
 for dir in $(echo '.' 'plomtask' 'tests'); do
     echo "Running mypy on ${dir}/ …."
     python3 -m mypy --strict ${dir}/*.py
index 16206cc7208e126720226cc0345bfc8b3cfef253..8f8e2c64b90f7ac60e111329ecf02cc1f4fc30c9 100644 (file)
@@ -315,11 +315,8 @@ class TestsWithServer(TestCaseWithServer):
         exp.lib_set('ProcessStep', [exp.procstep_as_dict(
             11, owner_id=8, step_process_id=7)])
         self.check_post(p_min | p | {'new_top_step': 8}, url, 400)
-        # fail on single-step recursion via explicit sub-step
-        self.check_json_get(url, exp)
+        # fail on single- and double-step recursion via explicit sub-step
         self.check_post(p_min | p | {'new_step_to_8': 7}, url, 400)
-        # fail on double-step recursion via explicit sub-step
-        self.check_json_get(url, exp)
         self.check_post(p_min | p | {'new_step_to_8': 8}, url, 400)
 
     def test_fail_GET_process(self) -> None: