|
|
@@ -12,9 +12,10 @@ The same name is already known to the completion guard: #2829's capture of
|
|
|
queue item 649 has ``auto_pa_line_calib_mode`` arriving as the subtask name of a
|
|
|
completion that had to be refused against a running job.
|
|
|
|
|
|
-The manual flow-dynamics run reaches Bambuddy the same way under a different
|
|
|
-name -- ``pa_pattern_calib_mode``, a pattern rather than a line and with no
|
|
|
-``auto_`` prefix -- so the automatic entry never covered it.
|
|
|
+The manual flow-dynamics run reaches Bambuddy the same way under two further
|
|
|
+names -- ``pa_line_calib_mode`` and ``pa_pattern_calib_mode``, the line and the
|
|
|
+pattern shape, both without the ``auto_`` prefix -- so the automatic entry never
|
|
|
+covered either of them.
|
|
|
"""
|
|
|
|
|
|
from unittest.mock import AsyncMock, MagicMock, patch
|
|
|
@@ -43,6 +44,16 @@ class TestTheCalibrationIsRecognised:
|
|
|
def test_the_manual_pressure_advance_pattern_by_filename(self):
|
|
|
assert is_internal_printer_job("pa_pattern_calib_mode", None)
|
|
|
|
|
|
+ def test_the_manual_pressure_advance_line_by_subtask_name(self):
|
|
|
+ """Manual flow dynamics has a line shape as well as a pattern one, and
|
|
|
+ it reports as ``pa_line_calib_mode`` -- the automatic name without its
|
|
|
+ ``auto_`` prefix, which is close enough to the automatic entry to look
|
|
|
+ covered and is not."""
|
|
|
+ assert is_internal_printer_job("", "pa_line_calib_mode")
|
|
|
+
|
|
|
+ def test_the_manual_pressure_advance_line_by_filename(self):
|
|
|
+ assert is_internal_printer_job("pa_line_calib_mode", None)
|
|
|
+
|
|
|
def test_the_levelling_run_by_its_system_path(self):
|
|
|
assert is_internal_printer_job("/usr/etc/print/auto_cali_for_user.gcode", "auto_cali_for_user")
|
|
|
|
|
|
@@ -63,6 +74,10 @@ class TestTheCalibrationIsRecognised:
|
|
|
"pa_pattern_calib_mode.gcode.3mf",
|
|
|
"PA_Pattern_Calib_Mode",
|
|
|
"/data/pa_pattern_calib_mode.gcode",
|
|
|
+ "pa_line_calib_mode",
|
|
|
+ "pa_line_calib_mode.gcode.3mf",
|
|
|
+ "PA_Line_Calib_Mode",
|
|
|
+ "/data/pa_line_calib_mode.gcode",
|
|
|
],
|
|
|
)
|
|
|
def test_however_the_name_is_dressed_up(self, reported):
|
|
|
@@ -92,6 +107,11 @@ class TestItLeavesRealPrintsAlone:
|
|
|
"auto_cali_for_user_test.gcode.3mf",
|
|
|
"pa_pattern_calib_mode_v2.3mf",
|
|
|
"my_pa_pattern_calib_mode.3mf",
|
|
|
+ "pa_line_calib_mode_v2.3mf",
|
|
|
+ "my_pa_line_calib_mode.3mf",
|
|
|
+ # The stem the four calibration names share, which is why the set
|
|
|
+ # holds literals instead of a ``pa_`` rule.
|
|
|
+ "pa_bracket.3mf",
|
|
|
],
|
|
|
)
|
|
|
def test_a_users_file_that_merely_contains_the_name(self, reported):
|