Skip to content

Commit

Permalink
fix renaming - squash
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Dec 21, 2023
1 parent 36d304d commit be20957
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/scwidgets/check/_widget_check_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class CheckableWidget:
the check registry that registers the checks for this widget
"""

def __init__(self, check_registry: Union[None, CheckRegistry]):
def __init__(self, check_registry: Optional[CheckRegistry]):
self._check_registry = check_registry
if self._check_registry is not None:
self._check_registry.register_widget(self)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -801,31 +801,31 @@ def test_button_clicks(
test_button_clicks(
nb_cells[3],
"Widget 1 all checks were successful.",
"Successful set all references.",
"Successfully set all references.",
"Widget 1 all checks were successful.",
)

# Test 1.2 use_fingerprint=True, failing=False, buggy=False
test_button_clicks(
nb_cells[4],
"Widget 1 all checks were successful.",
"Successful set all references.",
"Successfully set all references.",
"Widget 1 all checks were successful.",
)

# Test 1.3 use_fingerprint=False, failing=False, buggy=False
test_button_clicks(
nb_cells[5],
"Widget 1 not all checks were successful",
"Successful set all references.",
"Successfully set all references.",
"Widget 1 all checks were successful.",
)

# Test 1.4 use_fingerprint=False, failing=False, buggy=False
test_button_clicks(
nb_cells[6],
"Widget 1 not all checks were successful",
"Successful set all references.",
"Successfully set all references.",
"Widget 1 all checks were successful.",
)

Expand Down

0 comments on commit be20957

Please sign in to comment.