Skip to content
This repository was archived by the owner on Aug 10, 2022. It is now read-only.

Commit 4b2d320

Browse files
committed
Enable to setup cut_provider of EyesBase
1 parent 36618be commit 4b2d320

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

eyes_core/applitools/core/eyes_base.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,11 @@
2525
from applitools.common.utils import ABC, argument_guard, general_utils
2626
from applitools.common.visual_grid import RenderingInfo
2727
from applitools.core.capture import AppOutputProvider, AppOutputWithScreenshot
28-
from applitools.core.cut import NullCutProvider
28+
from applitools.core.cut import (
29+
NullCutProvider,
30+
FixedCutProvider,
31+
UnscaledFixedCutProvider,
32+
)
2933
from applitools.core.debug import (
3034
FileDebugScreenshotProvider,
3135
NullDebugScreenshotProvider,
@@ -174,6 +178,13 @@ def debug_screenshot_provider(self):
174178
def cut_provider(self):
175179
return self._cut_provider
176180

181+
@cut_provider.setter
182+
def cut_provider(self, provider):
183+
argument_guard.is_in(
184+
provider, [FixedCutProvider, UnscaledFixedCutProvider, NullCutProvider]
185+
)
186+
self._cut_provider = provider
187+
177188
@property
178189
def is_debug_screenshot_provided(self):
179190
# type: () -> bool

0 commit comments

Comments
 (0)