Clean command
This commit is contained in:
@@ -1652,6 +1652,20 @@ class WorkflowTests(unittest.TestCase):
|
||||
self.assertEqual(rotate[2:], ["-m", "copienator", "copies", "rotate", self.evaluation])
|
||||
self.assertEqual(rename[2:], ["-m", "copienator", "copies", "rename", self.evaluation])
|
||||
|
||||
def test_clean_is_the_last_dangerous_gui_step(self) -> None:
|
||||
ordered_steps = build_workflow(True)
|
||||
clean = ordered_steps[-1]
|
||||
self.assertEqual(clean.id, "clean")
|
||||
self.assertTrue(clean.optional)
|
||||
self.assertTrue(clean.variants[0].dangerous)
|
||||
self.assertIn("progression", clean.variants[0].danger_warning)
|
||||
self.assertEqual(
|
||||
command_arguments(
|
||||
self.command("clean", "default", {"target": self.evaluation})
|
||||
),
|
||||
[self.evaluation, "--yes"],
|
||||
)
|
||||
|
||||
|
||||
class CrossPlatformFileTests(unittest.TestCase):
|
||||
def test_rotate_all_skips_statement(self) -> None:
|
||||
|
||||
Reference in New Issue
Block a user