Skip to content

Commit

Permalink
tests: Make sure selinux_test doesn't try to create mountpoints
Browse files Browse the repository at this point in the history
This is a unit test so it shouldn't try to create directories
anywhere.
  • Loading branch information
vojtechtrefny committed Jul 3, 2024
1 parent 095d882 commit f049717
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/unit_tests/formats_tests/selinux_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def setUp(self):
@patch("blivet.tasks.fsmount.BlockDev.fs.mount", return_value=True)
@patch.object(fs.FS, "_pre_setup", return_value=True)
@patch("os.access", return_value=True)
@patch("os.path.isdir", return_value=True)
# pylint: disable=unused-argument
def exec_mount_selinux_format(self, formt, *args):
""" Test of correct selinux context parameter value when mounting """
Expand Down

0 comments on commit f049717

Please sign in to comment.