Skip to content

Commit

Permalink
Update eyes-images to 5.20
Browse files Browse the repository at this point in the history
Fix deprecation warning and duplication
  • Loading branch information
samtygier-stfc committed Oct 27, 2023
1 parent b3bddda commit 4b33ceb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- pip:
- sphinx==4.2.*
- git+https://github.com/samtygier-stfc/sphinx-multiversion.git@prebuild_command
- eyes-images==4.25.*
- eyes-images==5.20.*
- parameterized==0.8.*
- pre-commit==2.15.*
- yapf==0.33.*
Expand Down
3 changes: 0 additions & 3 deletions mantidimaging/eyes_tests/base_eyes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from PyQt5.QtGui import QFont
from PyQt5.QtWidgets import QMainWindow, QMenu, QWidget, QApplication
from applitools.common import MatchLevel

from mantidimaging.core.data import ImageStack
from mantidimaging.core.data.dataset import StrictDataset, MixedDataset
Expand Down Expand Up @@ -65,8 +64,6 @@ def setUpClass(cls) -> None:
cls.eyes_manager.set_batch(APPLITOOLS_BATCH_ID)

def setUp(self):
self.eyes_manager.set_match_level(MatchLevel.CONTENT)

self.imaging = None
self.eyes_manager.image_directory = APPLITOOLS_IMAGE_DIR

Expand Down
2 changes: 1 addition & 1 deletion mantidimaging/eyes_tests/eyes_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class EyesManager:
def __init__(self, application_name="Mantid Imaging", test_name=None):
self.application_name = application_name
self.eyes = Eyes()
self.eyes.match_level = MatchLevel.CONTENT
self.eyes.match_level = MatchLevel.IGNORE_COLORS
self.eyes.configure.host_os = sys.platform
self.image_directory = None
self.imaging = None
Expand Down

0 comments on commit 4b33ceb

Please sign in to comment.