Refs #33476 -- Refactored code to strictly match 88 characters line length.

This commit is contained in:
Mariusz Felisiak 2022-02-04 08:08:27 +01:00
parent 9c19aff7c7
commit 7119f40c98
404 changed files with 5944 additions and 2842 deletions

View file

@ -52,28 +52,32 @@ class ValidationMessagesTest(TestCase):
f,
"fõo",
[
"“fõo” value has an invalid date format. It must be in YYYY-MM-DD format."
"“fõo” value has an invalid date format. It must be in YYYY-MM-DD "
"format."
],
)
self._test_validation_messages(
f,
"aaaa-10-10",
[
"“aaaa-10-10” value has an invalid date format. It must be in YYYY-MM-DD format."
"“aaaa-10-10” value has an invalid date format. It must be in "
"YYYY-MM-DD format."
],
)
self._test_validation_messages(
f,
"2011-13-10",
[
"“2011-13-10” value has the correct format (YYYY-MM-DD) but it is an invalid date."
"“2011-13-10” value has the correct format (YYYY-MM-DD) but it is an "
"invalid date."
],
)
self._test_validation_messages(
f,
"2011-10-32",
[
"“2011-10-32” value has the correct format (YYYY-MM-DD) but it is an invalid date."
"“2011-10-32” value has the correct format (YYYY-MM-DD) but it is an "
"invalid date."
],
)
@ -84,7 +88,8 @@ class ValidationMessagesTest(TestCase):
f,
"fõo",
[
"“fõo” value has an invalid format. It must be in YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."
"“fõo” value has an invalid format. It must be in "
"YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ] format."
],
)
# Correct format but invalid date
@ -92,7 +97,8 @@ class ValidationMessagesTest(TestCase):
f,
"2011-10-32",
[
"“2011-10-32” value has the correct format (YYYY-MM-DD) but it is an invalid date."
"“2011-10-32” value has the correct format (YYYY-MM-DD) but it is an "
"invalid date."
],
)
# Correct format but invalid date/time
@ -100,8 +106,8 @@ class ValidationMessagesTest(TestCase):
f,
"2011-10-32 10:10",
[
"“2011-10-32 10:10” value has the correct format (YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]) "
"but it is an invalid date/time."
"“2011-10-32 10:10” value has the correct format "
"(YYYY-MM-DD HH:MM[:ss[.uuuuuu]][TZ]) but it is an invalid date/time."
],
)
@ -112,7 +118,8 @@ class ValidationMessagesTest(TestCase):
f,
"fõo",
[
"“fõo” value has an invalid format. It must be in HH:MM[:ss[.uuuuuu]] format."
"“fõo” value has an invalid format. It must be in HH:MM[:ss[.uuuuuu]] "
"format."
],
)
# Correct format but invalid time
@ -120,6 +127,7 @@ class ValidationMessagesTest(TestCase):
f,
"25:50",
[
"“25:50” value has the correct format (HH:MM[:ss[.uuuuuu]]) but it is an invalid time."
"“25:50” value has the correct format (HH:MM[:ss[.uuuuuu]]) but it is "
"an invalid time."
],
)