release: prepare production client deployment
This commit is contained in:
+13
-1
@@ -6,7 +6,11 @@ from pathlib import Path, PurePosixPath
|
||||
from unittest.mock import patch
|
||||
|
||||
from archive_clients.config import ServiceConfig
|
||||
from archive_clients.services import probe_qbittorrent, probe_syncthing
|
||||
from archive_clients.services import (
|
||||
_supported_qb_version,
|
||||
probe_qbittorrent,
|
||||
probe_syncthing,
|
||||
)
|
||||
from archive_control.v1 import common_pb2
|
||||
|
||||
|
||||
@@ -39,6 +43,14 @@ class _Opener:
|
||||
|
||||
|
||||
class ServiceProbeTests(unittest.TestCase):
|
||||
def test_supported_qbittorrent_versions_include_live_4_4_api(self):
|
||||
for version in ("v4.4.5", "v4.5.5", "v4.6.7", "v5.2.3"):
|
||||
with self.subTest(version=version):
|
||||
self.assertTrue(_supported_qb_version(version))
|
||||
for version in ("v4.3.9", "v6.0.0", "invalid"):
|
||||
with self.subTest(version=version):
|
||||
self.assertFalse(_supported_qb_version(version))
|
||||
|
||||
def test_qbittorrent_versions_are_normalized(self):
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
root = Path(directory)
|
||||
|
||||
Reference in New Issue
Block a user