From a33682f1011b448067ba80cc2120dc3d7e612d77 Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 2 Jun 2021 15:01:54 +1200 Subject: [PATCH] replace bios_grub label with (slightly) English words --- subiquity/common/filesystem/labels.py | 2 +- subiquity/models/tests/test_filesystem.py | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/subiquity/common/filesystem/labels.py b/subiquity/common/filesystem/labels.py index 73c31736..3012e481 100644 --- a/subiquity/common/filesystem/labels.py +++ b/subiquity/common/filesystem/labels.py @@ -78,7 +78,7 @@ def _annotations_partition(partition): r.append(_("configured")) else: r.append(_("unconfigured")) - r.append(_("bios_grub")) + r.append(_("BIOS grub spacer")) elif partition.flag == "extended": # extended partition r.append(_("extended")) diff --git a/subiquity/models/tests/test_filesystem.py b/subiquity/models/tests/test_filesystem.py index 6589cb7e..5ae26f2f 100644 --- a/subiquity/models/tests/test_filesystem.py +++ b/subiquity/models/tests/test_filesystem.py @@ -234,13 +234,15 @@ class TestFilesystemModel(unittest.TestCase): model = make_model() part = make_partition(model, flag="bios_grub") self.assertEqual( - annotations(part), ['new', 'bios_grub']) + annotations(part), ['new', 'BIOS grub spacer']) part.preserve = True self.assertEqual( - annotations(part), ['existing', 'unconfigured', 'bios_grub']) + annotations(part), + ['existing', 'unconfigured', 'BIOS grub spacer']) part.device.grub_device = True self.assertEqual( - annotations(part), ['existing', 'configured', 'bios_grub']) + annotations(part), + ['existing', 'configured', 'BIOS grub spacer']) model = make_model() part = make_partition(model, flag="boot", grub_device=True)