1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
commit 6c3d402dc0981e545081a3baf13db7e491356e75
Author: Mark Sapiro <mark@msapiro.net>
Date: Sat Dec 21 12:03:12 2024 -0800
Update test for python 3.13 argparse changes.
diff --git a/hyperkitty/tests/commands/test_attachments_to_file.py b/hyperkitty/tests/commands/test_attachments_to_file.py
index b3e61f3a..fd0aed84 100644
--- a/hyperkitty/tests/commands/test_attachments_to_file.py
+++ b/hyperkitty/tests/commands/test_attachments_to_file.py
@@ -90,9 +90,8 @@ class CommandTestCase(TestCase):
call_command('attachments_to_file', '--help')
output_value = fp.getvalue()
- assert (
- "HYPERKITTY_ATTACHMENT_FOLDER" in output_value
- and "-c CHUNK_SIZE" in output_value
- and "-c CHUNK_SIZE, --chunk-size CHUNK_SIZE" in output_value
- and "-v {0,1}, --verbosity {0,1}" in output_value
- )
+ self.assertRegex(output_value,
+ "(?s)HYPERKITTY_ATTACHMENT_FOLDER.*"
+ "-c( CHUNK_SIZE)?, --chunk-size CHUNK_SIZE.*"
+ r"-v( \{0,1\})?, --verbosity \{0,1\}"
+ )
|