def test_build_no_cache_pull(self): # Make sure we have the latest busybox already pull_busybox(self.client) self.base_dir = 'tests/fixtures/simple-dockerfile' self.dispatch(['build', 'simple']) result = self.dispatch(['build', '--no-cache', '--pull', 'simple']) assert BUILD_CACHE_TEXT not in result.stdout assert BUILD_PULL_TEXT in result.stdout
def test_build_pull(self): # Make sure we have the latest busybox already pull_busybox(self.client) self.base_dir = "tests/fixtures/simple-dockerfile" self.dispatch(["build", "simple"], None) result = self.dispatch(["build", "--pull", "simple"]) assert BUILD_CACHE_TEXT in result.stdout assert BUILD_PULL_TEXT in result.stdout