test: rename TestFileSystemMountService->FakeFileSystemMountService

The rename avoids warnings from pytest. It confuses this for
a unittest class apparently. And it's really a `Fake` service
anyway.
This commit is contained in:
Michael Vogt 2023-12-21 13:00:31 +01:00 committed by Achilleas Koutsou
parent a6fba858ab
commit 2d72dc125d

View file

@ -24,7 +24,7 @@ def test_mount_guard_failure_msg(tmp_path):
# This needs a proper refactor so that FileSystemMountService just uses
# a common mount helper.
class TestFileSystemMountService(FileSystemMountService):
class FakeFileSystemMountService(FileSystemMountService):
def __init__(self, args=None):
# override __init__ to make it testable
pass
@ -34,7 +34,7 @@ class TestFileSystemMountService(FileSystemMountService):
@pytest.mark.skipif(os.getuid() != 0, reason="root only")
def test_osbuild_mount_failure_msg(tmp_path):
mnt_service = TestFileSystemMountService()
mnt_service = FakeFileSystemMountService()
# yes, we have a third way of mounting things
with pytest.raises(RuntimeError) as e:
args = {