Cleanup some test case, remove unused mock return values, and use standard single underscore for unused variable
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
fc63454c99
commit
bdec7e6b52
2 changed files with 4 additions and 10 deletions
|
|
@ -313,7 +313,7 @@ class CLITestCase(DockerClientTestCase):
|
|||
self.assertEqual('moto=bobo', container.environment['allo'])
|
||||
|
||||
@mock.patch('dockerpty.start')
|
||||
def test_run_service_without_map_ports(self, __):
|
||||
def test_run_service_without_map_ports(self, _):
|
||||
# create one off container
|
||||
self.command.base_dir = 'tests/fixtures/ports-composefile'
|
||||
self.command.dispatch(['run', '-d', 'simple'], None)
|
||||
|
|
@ -331,7 +331,7 @@ class CLITestCase(DockerClientTestCase):
|
|||
self.assertEqual(port_assigned, None)
|
||||
|
||||
@mock.patch('dockerpty.start')
|
||||
def test_run_service_with_map_ports(self, __):
|
||||
def test_run_service_with_map_ports(self, _):
|
||||
|
||||
# create one off container
|
||||
self.command.base_dir = 'tests/fixtures/ports-composefile'
|
||||
|
|
@ -354,7 +354,7 @@ class CLITestCase(DockerClientTestCase):
|
|||
self.assertEqual(port_range[1], "0.0.0.0:49154")
|
||||
|
||||
@mock.patch('dockerpty.start')
|
||||
def test_run_service_with_explicitly_maped_ports(self, __):
|
||||
def test_run_service_with_explicitly_maped_ports(self, _):
|
||||
|
||||
# create one off container
|
||||
self.command.base_dir = 'tests/fixtures/ports-composefile'
|
||||
|
|
@ -373,7 +373,7 @@ class CLITestCase(DockerClientTestCase):
|
|||
self.assertEqual(port_full, "0.0.0.0:30001")
|
||||
|
||||
@mock.patch('dockerpty.start')
|
||||
def test_run_service_with_explicitly_maped_ip_ports(self, __):
|
||||
def test_run_service_with_explicitly_maped_ip_ports(self, _):
|
||||
|
||||
# create one off container
|
||||
self.command.base_dir = 'tests/fixtures/ports-composefile'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue