Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Bizin authored and goldmann committed Sep 3, 2024
1 parent 2276722 commit 3baa4ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/test_integ_squash.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
import docker.errors
import mock
import pytest
from parameterized import parameterized
from packaging import version as packaging_version
from parameterized import parameterized

from docker_squash.errors import SquashError, SquashUnnecessaryError
from docker_squash.lib import common
Expand Down Expand Up @@ -1309,12 +1309,15 @@ def test_should_not_squash_single_layer(self):

@parameterized.expand([(2,), (3,), (4,)])
def test_should_squash_n_layers(self, number_of_layers):
with self.SquashedImage(NumericValues.image, number_of_layers, numeric=True) as squashed_image:
with self.SquashedImage(
NumericValues.image, number_of_layers, numeric=True
) as squashed_image:
i_h = NumericValues.image.history[number_of_layers:]
s_h = squashed_image.history[1:]

self.assertEqual(
len(squashed_image.layers), len(NumericValues.image.layers) - (number_of_layers - 1)
len(squashed_image.layers),
len(NumericValues.image.layers) - (number_of_layers - 1),
)

for c in range(len(i_h)):
Expand Down

0 comments on commit 3baa4ee

Please sign in to comment.