Skip to content

Commit 24fe4fe

Browse files
committed
Only run one test and print the tesseract ocr version
1 parent 5a5b3cb commit 24fe4fe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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
39+
$(DOCKER) pytest --cov=ingestors --cov-report html --cov-report term -k "test_ingest_on_jpeg"
4040

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

tests/test_image.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,13 @@ 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-
self.assertIn("Debian", entity.first("bodyText"))
20+
import tesserocr
21+
22+
self.assertIn(
23+
"Debian",
24+
entity.first("bodyText"),
25+
f"tesserocr version: {tesserocr.tesseract_version()}",
26+
)
2127
self.assertEqual(entity.first("mimeType"), "image/jpeg")
2228

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

0 commit comments

Comments
 (0)