mirror of
https://github.com/docker/compose.git
synced 2025-07-26 23:24:05 +02:00
Fix by adding an assert to make the comparison effective
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
e9220f45df
commit
cba8ad474c
@ -521,7 +521,7 @@ class ServiceTest(unittest.TestCase):
|
|||||||
assert 'was built because it did not already exist' in args[0]
|
assert 'was built because it did not already exist' in args[0]
|
||||||
|
|
||||||
assert self.mock_client.build.call_count == 1
|
assert self.mock_client.build.call_count == 1
|
||||||
self.mock_client.build.call_args[1]['tag'] == 'default_foo'
|
assert self.mock_client.build.call_args[1]['tag'] == 'default_foo'
|
||||||
|
|
||||||
def test_ensure_image_exists_no_build(self):
|
def test_ensure_image_exists_no_build(self):
|
||||||
service = Service('foo', client=self.mock_client, build={'context': '.'})
|
service = Service('foo', client=self.mock_client, build={'context': '.'})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user