replace bios_grub label with (slightly) English words

This commit is contained in:
Michael Hudson-Doyle 2021-06-02 15:01:54 +12:00
parent faa9473a25
commit a33682f101
2 changed files with 6 additions and 4 deletions

View File

@ -78,7 +78,7 @@ def _annotations_partition(partition):
r.append(_("configured")) r.append(_("configured"))
else: else:
r.append(_("unconfigured")) r.append(_("unconfigured"))
r.append(_("bios_grub")) r.append(_("BIOS grub spacer"))
elif partition.flag == "extended": elif partition.flag == "extended":
# extended partition # extended partition
r.append(_("extended")) r.append(_("extended"))

View File

@ -234,13 +234,15 @@ class TestFilesystemModel(unittest.TestCase):
model = make_model() model = make_model()
part = make_partition(model, flag="bios_grub") part = make_partition(model, flag="bios_grub")
self.assertEqual( self.assertEqual(
annotations(part), ['new', 'bios_grub']) annotations(part), ['new', 'BIOS grub spacer'])
part.preserve = True part.preserve = True
self.assertEqual( self.assertEqual(
annotations(part), ['existing', 'unconfigured', 'bios_grub']) annotations(part),
['existing', 'unconfigured', 'BIOS grub spacer'])
part.device.grub_device = True part.device.grub_device = True
self.assertEqual( self.assertEqual(
annotations(part), ['existing', 'configured', 'bios_grub']) annotations(part),
['existing', 'configured', 'BIOS grub spacer'])
model = make_model() model = make_model()
part = make_partition(model, flag="boot", grub_device=True) part = make_partition(model, flag="boot", grub_device=True)