Refactor process_errors into smaller functions
So that it passed new max-complexity requirement Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
285e52cc7c
commit
34166ef5a4
2 changed files with 149 additions and 169 deletions
|
|
@ -865,7 +865,7 @@ class MemoryOptionsTest(unittest.TestCase):
|
|||
a mem_limit
|
||||
"""
|
||||
expected_error_msg = (
|
||||
"Invalid 'memswap_limit' configuration for 'foo' service: when "
|
||||
"Service 'foo' configuration key 'memswap_limit' is invalid: when "
|
||||
"defining 'memswap_limit' you must set 'mem_limit' as well"
|
||||
)
|
||||
with self.assertRaisesRegexp(ConfigurationError, expected_error_msg):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue