Browse Source

minor improvements to coverage, ignoring buggy/tests

main
John-Mark Gurney 2 years ago
parent
commit
53c4ac2f39
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      ui/medashare/cli.py

+ 5
- 2
ui/medashare/cli.py View File

@@ -1369,7 +1369,7 @@ class _TestCases(unittest.TestCase):

for cmd in cmds:
try:
if cmd['skip']:
if cmd['skip']: # pragma: no cover
continue
except KeyError:
pass
@@ -1400,7 +1400,10 @@ class _TestCases(unittest.TestCase):
else: # pragma: no cover
raise ValueError('unhandled special: %s' % repr(special))

continue
# coverage bug, fixed in 3.10:
# https://github.com/nedbat/coveragepy/issues/1432#event-7130600158
if True: # pragma: no cover
continue

with self.subTest(file=f, title=cmd['title']), \
mock.patch('os.path.expanduser',


Loading…
Cancel
Save