Skip to content

Commit f7a2322

Browse files
committed
Revert "Only run one test and print the tesseract ocr version"
This reverts commit 24fe4fe.
1 parent 9906f46 commit f7a2322

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ format-check:
3636
black --check .
3737

3838
test: services
39-
$(DOCKER) pytest --cov=ingestors --cov-report html --cov-report term -k "test_ingest_on_jpeg"
39+
$(DOCKER) pytest --cov=ingestors --cov-report html --cov-report term
4040

4141
restart: build
4242
$(COMPOSE) up --force-recreate --no-deps --detach ingest-file

tests/test_image.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,7 @@ def test_ingest_on_svg(self):
1717
def test_ingest_on_jpeg(self):
1818
fixture_path, entity = self.fixture("jpegtest.jpg")
1919
self.manager.ingest(fixture_path, entity)
20-
import tesserocr
21-
22-
try:
23-
self.assertIn("Debian", entity.first("bodyText"))
24-
except Exception:
25-
print(
26-
f"tesserocr version: {tesserocr.tesseract_version()}",
27-
)
28-
self.assertTrue(False)
20+
self.assertIn("Debian", entity.first("bodyText"))
2921
self.assertEqual(entity.first("mimeType"), "image/jpeg")
3022

3123
self.assertEqual(entity.first("processingStatus"), self.manager.STATUS_SUCCESS)

0 commit comments

Comments
 (0)