From b194b0e1ee937403122b9c3d38a13d9d189f4e20 Mon Sep 17 00:00:00 2001 From: Marcel Wilson Date: Wed, 10 Jan 2024 15:46:41 -0600 Subject: [PATCH] * D102 --- .../resolutions/custom_matchers/is_clickable_element.py | 1 + .../resolutions/custom_matchers/is_invisible_element.py | 1 + .../resolutions/custom_matchers/is_present_element.py | 1 + .../resolutions/custom_matchers/is_visible_element.py | 1 + 4 files changed, 4 insertions(+) diff --git a/screenpy_selenium/resolutions/custom_matchers/is_clickable_element.py b/screenpy_selenium/resolutions/custom_matchers/is_clickable_element.py index fc2b908..bd689df 100644 --- a/screenpy_selenium/resolutions/custom_matchers/is_clickable_element.py +++ b/screenpy_selenium/resolutions/custom_matchers/is_clickable_element.py @@ -28,6 +28,7 @@ def describe_to(self, description: Description) -> None: def describe_match( self, _: Optional[WebElement], match_description: Description ) -> None: + """Describe the matching case.""" match_description.append_text("it was enabled/clickable") def describe_mismatch( diff --git a/screenpy_selenium/resolutions/custom_matchers/is_invisible_element.py b/screenpy_selenium/resolutions/custom_matchers/is_invisible_element.py index 5f1e933..8a1258b 100644 --- a/screenpy_selenium/resolutions/custom_matchers/is_invisible_element.py +++ b/screenpy_selenium/resolutions/custom_matchers/is_invisible_element.py @@ -28,6 +28,7 @@ def describe_to(self, description: Description) -> None: def describe_match( self, _: Optional[WebElement], match_description: Description ) -> None: + """Describe the matching case.""" match_description.append_text("it was invisible") def describe_mismatch( diff --git a/screenpy_selenium/resolutions/custom_matchers/is_present_element.py b/screenpy_selenium/resolutions/custom_matchers/is_present_element.py index 1cef5a3..ee56716 100644 --- a/screenpy_selenium/resolutions/custom_matchers/is_present_element.py +++ b/screenpy_selenium/resolutions/custom_matchers/is_present_element.py @@ -28,6 +28,7 @@ def describe_to(self, description: Description) -> None: def describe_match( self, _: Optional[WebElement], match_description: Description ) -> None: + """Describe the matching case.""" match_description.append_text("it was present") def describe_mismatch( diff --git a/screenpy_selenium/resolutions/custom_matchers/is_visible_element.py b/screenpy_selenium/resolutions/custom_matchers/is_visible_element.py index e7e58d7..4dca3c6 100644 --- a/screenpy_selenium/resolutions/custom_matchers/is_visible_element.py +++ b/screenpy_selenium/resolutions/custom_matchers/is_visible_element.py @@ -28,6 +28,7 @@ def describe_to(self, description: Description) -> None: def describe_match( self, _: Optional[WebElement], match_description: Description ) -> None: + """Describe the matching case.""" match_description.append_text("it was visible") def describe_mismatch(