mirror of https://github.com/borgbackup/borg.git
removed unittest skips
This commit is contained in:
parent
efc4481996
commit
f1af13e544
|
@ -1,5 +1,3 @@
|
|||
import unittest
|
||||
|
||||
import pytest
|
||||
|
||||
from ...constants import * # NOQA
|
||||
|
@ -110,7 +108,7 @@ def test_readonly_list(archiver):
|
|||
cmd(archiver, f"--repo={archiver.repository_location}", "rlist", "--bypass-lock")
|
||||
|
||||
|
||||
@unittest.skipUnless(llfuse, "llfuse not installed")
|
||||
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
||||
def test_readonly_mount(archiver):
|
||||
cmd(archiver, f"--repo={archiver.repository_location}", "rcreate", RK_ENCRYPTION)
|
||||
create_src_archive(archiver, "test")
|
||||
|
|
|
@ -2,7 +2,6 @@ import errno
|
|||
import os
|
||||
import stat
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
import pytest
|
||||
|
||||
|
@ -25,7 +24,7 @@ def pytest_generate_tests(metafunc):
|
|||
|
||||
|
||||
@requires_hardlinks
|
||||
@unittest.skipUnless(llfuse, "llfuse not installed")
|
||||
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
||||
def test_fuse_mount_hardlinks(archivers, request):
|
||||
archiver = request.getfixturevalue(archivers)
|
||||
repo_location = archiver.repository_location
|
||||
|
@ -64,7 +63,7 @@ def test_fuse_mount_hardlinks(archivers, request):
|
|||
assert open("input/dir1/subdir/hardlink", "rb").read() == b"123456"
|
||||
|
||||
|
||||
@unittest.skipUnless(llfuse, "llfuse not installed")
|
||||
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
||||
def test_fuse(archivers, request):
|
||||
archiver = request.getfixturevalue(archivers)
|
||||
if archiver.EXE and fakeroot_detected():
|
||||
|
@ -173,7 +172,7 @@ def test_fuse(archivers, request):
|
|||
raise
|
||||
|
||||
|
||||
@unittest.skipUnless(llfuse, "llfuse not installed")
|
||||
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
||||
def test_fuse_versions_view(archivers, request):
|
||||
archiver = request.getfixturevalue(archivers)
|
||||
repo_location, input_path = archiver.repository_location, archiver.input_path
|
||||
|
@ -208,7 +207,7 @@ def test_fuse_versions_view(archivers, request):
|
|||
assert open(hl3, "rb").read() == b"123456"
|
||||
|
||||
|
||||
@unittest.skipUnless(llfuse, "llfuse not installed")
|
||||
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
||||
def test_fuse_allow_damaged_files(archivers, request):
|
||||
archiver = request.getfixturevalue(archivers)
|
||||
repo_location, repo_path = archiver.repository_location, archiver.repository_path
|
||||
|
@ -236,7 +235,7 @@ def test_fuse_allow_damaged_files(archivers, request):
|
|||
open(os.path.join(mountpoint, "archive", path)).close()
|
||||
|
||||
|
||||
@unittest.skipUnless(llfuse, "llfuse not installed")
|
||||
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
||||
def test_fuse_mount_options(archivers, request):
|
||||
archiver = request.getfixturevalue(archivers)
|
||||
repo_location = archiver.repository_location
|
||||
|
@ -261,7 +260,7 @@ def test_fuse_mount_options(archivers, request):
|
|||
assert sorted(os.listdir(os.path.join(mountpoint))) == []
|
||||
|
||||
|
||||
@unittest.skipUnless(llfuse, "llfuse not installed")
|
||||
@pytest.mark.skipif(not llfuse, reason="llfuse not installed")
|
||||
def test_migrate_lock_alive(archivers, request):
|
||||
archiver = request.getfixturevalue(archivers)
|
||||
if archiver.prefix == "ssh://__testsuite__":
|
||||
|
|
Loading…
Reference in New Issue