refactor: import GIT_GATE_DAEMON_TIMEOUT_SECS instead of duplicating the value

This commit is contained in:
2026-06-25 07:03:18 +00:00
committed by didericis
parent 508c537deb
commit c0d3f16519
2 changed files with 7 additions and 14 deletions
+3 -6
View File
@@ -9,11 +9,8 @@ import urllib.request
from pathlib import Path
from unittest import mock
from bot_bottle.git_http_backend import (
GIT_HTTP_BACKEND_TIMEOUT_SECS,
GitHttpHandler,
MAX_BODY_BYTES,
)
from bot_bottle.git_gate import GIT_GATE_DAEMON_TIMEOUT_SECS
from bot_bottle.git_http_backend import GitHttpHandler, MAX_BODY_BYTES
class TestGitHttpBackend(unittest.TestCase):
@@ -204,7 +201,7 @@ class TestGitHttpBackend(unittest.TestCase):
for call in run.call_args_list:
self.assertEqual(
GIT_HTTP_BACKEND_TIMEOUT_SECS,
GIT_GATE_DAEMON_TIMEOUT_SECS,
call.kwargs.get("timeout"),
f"subprocess.run call missing timeout: {call}",
)