diff options
| author | historia <historiavg@proton.me> | 2026-09-02 17:16:05 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-09-02 17:16:05 -0400 |
| commit | 717a3dc112519ae7cf39a212a4e3ec9e1ba17f28 (patch) | |
| tree | 119ad113ddce14414ae3293316cf7ed8c57cd5d3 /app/tests/test_backends_common.py | |
| parent | 8579517a35ef1865fc9b428899d73d52dcb27a14 (diff) | |
| download | tts-audiobook-generator-717a3dc112519ae7cf39a212a4e3ec9e1ba17f28.tar.gz | |
feat: auto-update via settings
Diffstat (limited to 'app/tests/test_backends_common.py')
| -rw-r--r-- | app/tests/test_backends_common.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/tests/test_backends_common.py b/app/tests/test_backends_common.py index 68a5543..71f0c17 100644 --- a/app/tests/test_backends_common.py +++ b/app/tests/test_backends_common.py @@ -161,7 +161,7 @@ class GitUpdateTests(unittest.TestCase): """Patch run_console_subprocess (fetch/reset) and the branch probe.""" run = mock.patch.object(common, "run_console_subprocess", return_value=fetch_rc).start() - mock.patch.object(common, "_origin_default_branch", + mock.patch.object(common, "origin_default_branch", return_value=branch).start() return run @@ -207,20 +207,20 @@ class OriginDefaultBranchTests(unittest.TestCase): stdout=b"refs/remotes/origin/master\n") with mock.patch.object(common, "run_console_subprocess_quiet", return_value=proc): - self.assertEqual(common._origin_default_branch( + self.assertEqual(common.origin_default_branch( common.Path("/co")), "master") def test_missing_ref_falls_back_to_main(self): proc = mock.Mock(returncode=128, stdout=b"") with mock.patch.object(common, "run_console_subprocess_quiet", return_value=proc): - self.assertEqual(common._origin_default_branch( + self.assertEqual(common.origin_default_branch( common.Path("/co")), "main") def test_unstartable_probe_falls_back_to_main(self): with mock.patch.object(common, "run_console_subprocess_quiet", return_value=None): - self.assertEqual(common._origin_default_branch( + self.assertEqual(common.origin_default_branch( common.Path("/co")), "main") |
