Skip to content

Commit

Permalink
Remove duplicated constant
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloLec committed Sep 30, 2023
1 parent e6233d2 commit 13e2959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions recoverpy/lib/lsblk.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

from recoverpy.models.partition import Partition

_IGNORED_PARTITIONS_TYPES: Tuple[str, str] = (" loop ", "swap")


_IGNORED_PARTITION_TYPES: Tuple[str, str] = (" loop ", "swap")


Expand Down
4 changes: 2 additions & 2 deletions tests/unit/test_lsblk.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from recoverpy.lib.lsblk import _IGNORED_PARTITIONS_TYPES, get_partitions
from recoverpy.lib.lsblk import _IGNORED_PARTITION_TYPES, get_partitions
from tests.fixtures.mock_lsblk_output import VISIBLE_PARTITION_COUNT


def test_get_partitions():
partitions = get_partitions()

assert len(partitions) == VISIBLE_PARTITION_COUNT
for ignored_type in _IGNORED_PARTITIONS_TYPES:
for ignored_type in _IGNORED_PARTITION_TYPES:
assert all(ignored_type not in partition.name for partition in partitions)

0 comments on commit 13e2959

Please sign in to comment.