tests: Style cleanup

Signed-off-by: Justin Zhang <schnell18@gmail.com>
This commit is contained in:
Justin Zhang 2025-05-10 14:09:46 +03:00 committed by Povilas Kanapickas
parent d7762a54f0
commit 782c44d4c3

View File

@ -16,7 +16,7 @@ def compose_yaml_path(suffix=""):
class TestComposeBaseDeps(unittest.TestCase, RunSubprocessMixin): class TestComposeBaseDeps(unittest.TestCase, RunSubprocessMixin):
def test_deps(self): def test_deps(self):
try: try:
output, error = self.run_subprocess_assert_returncode([ output, _ = self.run_subprocess_assert_returncode([
podman_compose_path(), podman_compose_path(),
"-f", "-f",
compose_yaml_path(), compose_yaml_path(),
@ -39,7 +39,7 @@ class TestComposeBaseDeps(unittest.TestCase, RunSubprocessMixin):
def test_run_nodeps(self): def test_run_nodeps(self):
try: try:
output, error = self.run_subprocess_assert_returncode([ output, _ = self.run_subprocess_assert_returncode([
podman_compose_path(), podman_compose_path(),
"-f", "-f",
compose_yaml_path(), compose_yaml_path(),
@ -73,7 +73,7 @@ class TestComposeBaseDeps(unittest.TestCase, RunSubprocessMixin):
"--detach", "--detach",
"sleep", "sleep",
]) ])
output, error = self.run_subprocess_assert_returncode([ output, _ = self.run_subprocess_assert_returncode([
podman_compose_path(), podman_compose_path(),
"-f", "-f",
compose_yaml_path(), compose_yaml_path(),
@ -146,7 +146,7 @@ class TestComposeConditionalDeps(unittest.TestCase, RunSubprocessMixin):
def test_deps_succeeds(self): def test_deps_succeeds(self):
suffix = "-conditional-succeeds" suffix = "-conditional-succeeds"
try: try:
output, error = self.run_subprocess_assert_returncode([ output, _ = self.run_subprocess_assert_returncode([
podman_compose_path(), podman_compose_path(),
"-f", "-f",
compose_yaml_path(suffix), compose_yaml_path(suffix),
@ -170,7 +170,7 @@ class TestComposeConditionalDeps(unittest.TestCase, RunSubprocessMixin):
def test_deps_fails(self): def test_deps_fails(self):
suffix = "-conditional-fails" suffix = "-conditional-fails"
try: try:
output, error = self.run_subprocess_assert_returncode([ output, _ = self.run_subprocess_assert_returncode([
podman_compose_path(), podman_compose_path(),
"-f", "-f",
compose_yaml_path(suffix), compose_yaml_path(suffix),