1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-27 02:08:54 +00:00

remove unneeded code

This commit is contained in:
Thomas Waldmann 2022-09-13 14:14:56 +02:00
parent db0d15c182
commit 87c3f11796

View file

@ -357,31 +357,11 @@ def check_cache(self):
assert id in seen assert id in seen
class ArchiverTestCase(ArchiverTestCaseBase):
def test_do_not_mention_archive_if_you_can_not_find_repo(self):
"""https://github.com/borgbackup/borg/issues/6014"""
output = self.cmd(
f"--repo={self.repository_location}-this-repository-does-not-exist",
"info",
"-a",
"test",
exit_code=2,
fork=True,
)
self.assert_in("this-repository-does-not-exist", output)
self.assert_not_in("this-repository-does-not-exist::test", output)
class ArchiverTestCaseBinaryBase: class ArchiverTestCaseBinaryBase:
EXE = "borg.exe" EXE = "borg.exe"
FORK_DEFAULT = True FORK_DEFAULT = True
@unittest.skipUnless("binary" in BORG_EXES, "no borg.exe available")
class ArchiverTestCaseBinary(ArchiverTestCaseBinaryBase, ArchiverTestCase):
pass
class RemoteArchiverTestCaseBase: class RemoteArchiverTestCaseBase:
prefix = "ssh://__testsuite__" prefix = "ssh://__testsuite__"