robotframework-doctestlibrary 0.23.0.dev1__tar.gz → 0.24.0rc1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. robotframework_doctestlibrary-0.23.0.dev1/DocTest/CompareImage.py → robotframework_doctestlibrary-0.24.0rc1/DocTest/CompareImage_legacy.py +1 -21
  2. robotframework_doctestlibrary-0.24.0rc1/DocTest/DocumentRepresentation.py +744 -0
  3. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/Downloader.py +3 -4
  4. robotframework_doctestlibrary-0.24.0rc1/DocTest/IgnoreAreaManager.py +129 -0
  5. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/Ocr.py +25 -9
  6. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/PdfTest.py +10 -11
  7. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/PrintJobTests.py +10 -11
  8. robotframework_doctestlibrary-0.24.0rc1/DocTest/VisualTest.py +1144 -0
  9. robotframework_doctestlibrary-0.23.0.dev1/DocTest/VisualTest.py → robotframework_doctestlibrary-0.24.0rc1/DocTest/VisualTest_legacy.py +29 -30
  10. robotframework_doctestlibrary-0.24.0rc1/DocTest/config.py +9 -0
  11. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/PKG-INFO +8 -7
  12. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/pyproject.toml +8 -6
  13. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/setup.py +12 -11
  14. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/PrintJob.py +0 -0
  15. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/DocTest/__init__.py +0 -0
  16. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/LICENSE +0 -0
  17. {robotframework_doctestlibrary-0.23.0.dev1 → robotframework_doctestlibrary-0.24.0rc1}/README.md +0 -0
@@ -431,30 +431,10 @@ class CompareImage(object):
431
431
 
432
432
  return cv2.resize(image, dim, interpolation=inter)
433
433
 
434
- def get_image_dimensions(self):
435
- """
436
- Return a list of tuples with the dimensions of the images
437
- Tuples shall be in format (width, height)
438
- """
439
- dimensions = []
440
- for i in range(len(self.opencv_images)):
441
- dimensions.append((self.opencv_images[i].shape[1], self.opencv_images[i].shape[0]))
442
- return dimensions
443
-
444
- def get_image_with_placeholders(self, placeholders=None, resize=False, dimensions=None, blur=False):
434
+ def get_image_with_placeholders(self, placeholders=None):
445
435
  if placeholders is None:
446
436
  placeholders = self.placeholders
447
437
  images_with_placeholders = self.opencv_images
448
- for i in range(len(images_with_placeholders)):
449
- if resize:
450
- if dimensions is None:
451
- raise AssertionError("Dimensions must be defined for resizing")
452
- images_with_placeholders[i] = cv2.resize(images_with_placeholders[i], dimensions[i])
453
- if blur:
454
- kernel_size = int(images_with_placeholders[i].shape[1]/50)
455
- # must be odd if median
456
- kernel_size += kernel_size%2-1
457
- images_with_placeholders[i] = cv2.GaussianBlur(images_with_placeholders[i], (kernel_size, kernel_size), 1.5)
458
438
  for placeholder in placeholders:
459
439
  if placeholder['page'] == 'all':
460
440
  for i in range(len(images_with_placeholders)):