From 7d2b3e8372fe76fa13e5402646cd661816bdad7c Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Thu, 19 Mar 2026 09:47:38 -0600 Subject: [PATCH] refactor: update python black formatting for test Signed-off-by: Rich Megginson --- tests/unit/test_bootloader_settings.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/tests/unit/test_bootloader_settings.py b/tests/unit/test_bootloader_settings.py index 05c72186..2e775494 100644 --- a/tests/unit/test_bootloader_settings.py +++ b/tests/unit/test_bootloader_settings.py @@ -139,8 +139,7 @@ ] changed_args = "arg_with_str_value_absent=test_value arg_with_int_value_absent=1 arg_without_val_absent" -INFO = ( - """ +INFO = """ index=0 kernel="/boot/vmlinuz-6.5.12-100.fc37.x86_64" args="%s" @@ -148,13 +147,10 @@ initrd="/boot/initramfs-6.5.12-100.fc37.x86_64.img $tuned_initrd" title="Fedora Linux (6.5.12-100.fc37.x86_64) 37 (Workstation Edition)" id="c44543d15b2c4e898912c2497f734e67-6.5.12-100.fc37.x86_64" -""" - % changed_args -) +""" % changed_args same_args = "arg_with_str_value=test_value arg_with_int_value=1 arg_without_val" -INFO_SAME_ARGS = ( - """ +INFO_SAME_ARGS = """ index=0 kernel="/boot/vmlinuz-6.5.12-100.fc37.x86_64" args="%s" @@ -162,12 +158,9 @@ initrd="/boot/initramfs-6.5.12-100.fc37.x86_64.img $tuned_initrd" title="Fedora Linux (6.5.12-100.fc37.x86_64) 37 (Workstation Edition)" id="c44543d15b2c4e898912c2497f734e67-6.5.12-100.fc37.x86_64" -""" - % same_args -) +""" % same_args -INFO_RHEL7 = ( - """ +INFO_RHEL7 = """ index=0 kernel=/boot/vmlinuz-6.5.12-100.fc37.x86_64 args="%s" @@ -175,9 +168,7 @@ initrd=/boot/initramfs-6.5.12-100.fc37.x86_64.img $tuned_initrd title=Fedora Linux (6.5.12-100.fc37.x86_64) 37 (Workstation Edition) id=c44543d15b2c4e898912c2497f734e67-6.5.12-100.fc37.x86_64 -""" - % changed_args -) +""" % changed_args kernels_keys = ["kernel_index", "kernel_path", "kernel_title", "DEFAULT", "ALL"]