Skip to content

Commit

Permalink
Fix docstring for message property
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke committed Mar 6, 2025
1 parent 23ad329 commit 2213781
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions jwst/tests/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,15 @@ def __call__(self, *args):

@property
def message(self):
"""
str: The message to watch for.
When the message is set, the `seen` flag is set to False.
"""
return self._message

@message.setter
def message(self, new_message):
"""
When message is set, clear the `seen` flag.
Parameters
----------
new_message : str
New value for the `message` property.
"""
self.seen = False
self._message = new_message

Expand Down

0 comments on commit 2213781

Please sign in to comment.