Remove flake8 ignores and wrap the longest lines to 140 char.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
fc63454c99
commit
54973e8200
8 changed files with 65 additions and 16 deletions
|
|
@ -142,4 +142,12 @@ class GetContainerNameTestCase(unittest.TestCase):
|
|||
self.assertIsNone(get_container_name({}))
|
||||
self.assertEqual(get_container_name({'Name': 'myproject_db_1'}), 'myproject_db_1')
|
||||
self.assertEqual(get_container_name({'Names': ['/myproject_db_1', '/myproject_web_1/db']}), 'myproject_db_1')
|
||||
self.assertEqual(get_container_name({'Names': ['/swarm-host-1/myproject_db_1', '/swarm-host-1/myproject_web_1/db']}), 'myproject_db_1')
|
||||
self.assertEqual(
|
||||
get_container_name({
|
||||
'Names': [
|
||||
'/swarm-host-1/myproject_db_1',
|
||||
'/swarm-host-1/myproject_web_1/db'
|
||||
]
|
||||
}),
|
||||
'myproject_db_1'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue