Add tests for toggling breakpoint and inserting line

This commit is contained in:
Ben Jackson 2019-12-14 18:03:34 +00:00
commit 7d046574cb
6 changed files with 79 additions and 16 deletions

View file

@ -305,7 +305,7 @@ class ProjectBreakpoints( object ):
if isinstance( result, bool ):
result = 'Y' if result else 'N'
if not isinstance( result, str) or result not in ( 'Y', 'N', '' ):
if not isinstance( result, str ) or result not in ( 'Y', 'N', '' ):
raise ValueError(
f"Invalid value for exception breakpoint filter '{f}': "
f"'{result}'. Must be boolean, 'Y', 'N' or '' (default)" )