Skip to content

Commit

Permalink
Format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Bentvelsen committed Jan 5, 2024
1 parent c8afda2 commit 1eef3e6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/integration/buildcmd/test_build_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1695,13 +1695,13 @@ def test_build_layer_with_architecture_not_compatible(self, build_method, use_co
# Capture warning
self.assertIn(
f"Layer '{layer_identifier}' has BuildArchitecture x86_64, which is not listed in CompatibleArchitectures",
str(command_result.stderr.decode('utf-8')),
str(command_result.stderr.decode("utf-8")),
)
# Build should still succeed
self.assertEqual(command_result.process.returncode, 0)

@parameterized.expand([("python3.8", False), ("python3.8", "use_container")])
def test_build_arch_no_compatible_arch(self,runtime,use_container):
def test_build_arch_no_compatible_arch(self, runtime, use_container):
# CompatibleArchitectures section is missing, but BuildArchitecture is present
if use_container and (SKIP_DOCKER_TESTS or SKIP_DOCKER_BUILD):
self.skipTest(SKIP_DOCKER_MESSAGE)
Expand All @@ -1726,9 +1726,8 @@ def test_build_arch_no_compatible_arch(self,runtime,use_container):
# Build should still succeed
self.assertEqual(command_result.process.returncode, 0)


@parameterized.expand([("python3.8", False), ("python3.8", "use_container")])
def test_compatible_arch_no_build_arch(self,runtime,use_container):
def test_compatible_arch_no_build_arch(self, runtime, use_container):
# BuildArchitecture section is missing, but CompatibleArchitectures is present
if use_container and (SKIP_DOCKER_TESTS or SKIP_DOCKER_BUILD):
self.skipTest(SKIP_DOCKER_MESSAGE)
Expand All @@ -1753,7 +1752,6 @@ def test_compatible_arch_no_build_arch(self,runtime,use_container):
# Build should still succeed
self.assertEqual(command_result.process.returncode, 0)


def test_build_layer_with_makefile_with_fake_build_architecture(self):
build_method = "makefile"
use_container = False
Expand Down

0 comments on commit 1eef3e6

Please sign in to comment.