Add spellchecking for camelCase, PascalCase, and kebab-case
This commit is contained in:
parent
3f54084d14
commit
66b4a06e87
9 changed files with 40 additions and 8 deletions
|
|
@ -24,19 +24,19 @@ from openflexure_microscope_server.ui import PropertyControl
|
|||
def test_partial_base_classes():
|
||||
"""Create a partial class and check it raises the correct errors."""
|
||||
|
||||
class MinimalSetings(BaseModel):
|
||||
class MinimalSettings(BaseModel):
|
||||
"""Some minimal settings for a workflow that doesn't work."""
|
||||
|
||||
foo: str = "bar"
|
||||
|
||||
class BadWorkflow(ScanWorkflow[MinimalSetings]):
|
||||
class BadWorkflow(ScanWorkflow[MinimalSettings]):
|
||||
"""Can initialise. Other properties and methods error."""
|
||||
|
||||
display_name: str = lt.property(default="Bad Workflow", readonly=True)
|
||||
|
||||
bad_workflow = create_thing_without_server(BadWorkflow)
|
||||
|
||||
settings = MinimalSetings()
|
||||
settings = MinimalSettings()
|
||||
with pytest.raises(NotImplementedError):
|
||||
bad_workflow.check_before_start(settings)
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ def test_monkey_patched_handle_exit(side_effect, mocker):
|
|||
# The error was raised so we know our custom function was run, check that
|
||||
# handle_exit wasn't.
|
||||
# Note: that the non-mocked shutdown function is entirely wrapped in a
|
||||
# try/except BaseExcpetion, so that handle_exit will always run.
|
||||
# try/except BaseException, so that handle_exit will always run.
|
||||
assert original_mock_handle_exit.call_count == 0
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue