File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ format-check:
3636 black --check .
3737
3838test : 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
4141restart : build
4242 $(COMPOSE ) up --force-recreate --no-deps --detach ingest-file
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments