File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ def test_build_container_with_target(self):
275
275
pass
276
276
277
277
info = self .client .inspect_image ('build1' )
278
- assert not info ['Config' ]['OnBuild' ]
278
+ assert 'OnBuild' not in info [ 'Config' ] or not info ['Config' ]['OnBuild' ]
279
279
280
280
@requires_api_version ('1.25' )
281
281
def test_build_with_network_mode (self ):
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ def test_build_container_with_target(self):
266
266
pass
267
267
268
268
info = self .client .inspect_image ('build1' )
269
- assert not info ['Config' ]['OnBuild' ]
269
+ assert 'OnBuild' not in info [ 'Config' ] or not info ['Config' ]['OnBuild' ]
270
270
271
271
@requires_api_version ('1.25' )
272
272
def test_build_with_network_mode (self ):
You can’t perform that action at this time.
0 commit comments