File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ format-check:
36
36
black --check .
37
37
38
38
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 "
40
40
41
41
restart : build
42
42
$(COMPOSE ) up --force-recreate --no-deps --detach ingest-file
Original file line number Diff line number Diff line change @@ -17,7 +17,13 @@ def test_ingest_on_svg(self):
17
17
def test_ingest_on_jpeg (self ):
18
18
fixture_path , entity = self .fixture ("jpegtest.jpg" )
19
19
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
+ )
21
27
self .assertEqual (entity .first ("mimeType" ), "image/jpeg" )
22
28
23
29
self .assertEqual (entity .first ("processingStatus" ), self .manager .STATUS_SUCCESS )
You can’t perform that action at this time.
0 commit comments