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:
parent
a6fba858ab
commit
2d72dc125d
1 changed files with 2 additions and 2 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue