forked from pool/weblate
* Many more changes, see https://docs.weblate.org/en/latest/changes.html * Perl brace format quality check * Mobile Kotlin resources * Format.JS JSON file * Component discovery now reports skipped entries * File downloads now honor If-Modified-Since * Add-ons can be now installed project-wide and site-wide * API improvements * Added Systran automatic translation support * Docker container now validates user password strength by default * Translation component alerts are now refreshed when needed, not just daily * Notifications now include strings which need updating * Improved compatibility with password managers * Validation of Project level backups ZIP file upon restoring (CVE-2024-39303 / GHSA-jfgp-674x-6q4p). - Download tarballs from GitHub - Releases are signed by Sigstore instead of PGP * added weblate-%{version}.tar.gz.sigstore * dropped Weblate-%{version}.tar.xz.asc OBS-URL: https://build.opensuse.org/package/show/M17N:l10n.opensuse.org/weblate?expand=0&rev=108
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
---
|
|
weblate/screenshots/tests.py | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
Index: weblate-5.6.2/weblate/screenshots/tests.py
|
|
===================================================================
|
|
--- weblate-5.6.2.orig/weblate/screenshots/tests.py
|
|
+++ weblate-5.6.2/weblate/screenshots/tests.py
|
|
@@ -13,6 +13,8 @@ from django.urls import reverse
|
|
from django.utils import timezone
|
|
from rest_framework.test import APITestCase
|
|
|
|
+from unittest import skip
|
|
+
|
|
from weblate.lang.models import Language
|
|
from weblate.screenshots.models import Screenshot
|
|
from weblate.screenshots.views import get_tesseract, ocr_get_strings
|
|
@@ -142,6 +144,7 @@ class ViewTest(TransactionsTestMixin, Fi
|
|
)
|
|
self.assertEqual(screenshot.units.count(), 0)
|
|
|
|
+ @skip("Test fails, gh#WeblateOrg/weblate#8931")
|
|
def test_ocr_backend(self) -> None:
|
|
# Extract strings
|
|
with get_tesseract(Language.objects.get(code="en")) as api:
|
|
@@ -159,6 +162,7 @@ class ViewTest(TransactionsTestMixin, Fi
|
|
matches, f"Could not find string in tesseract results: {result}"
|
|
)
|
|
|
|
+ @skip("Test fails, gh#WeblateOrg/weblate#8931")
|
|
def test_ocr(self) -> None:
|
|
self.make_manager()
|
|
self.do_upload()
|