MCPcopy
hub / github.com/mne-tools/mne-python / check_usage

Function check_usage

mne/commands/tests/test_commands.py:68–76  ·  view source on GitHub ↗

Ensure we print usage.

(module, force_help=False)

Source from the content-addressed store, hash-verified

66
67
68def check_usage(module, force_help=False):
69 """Ensure we print usage."""
70 args = ("--help",) if force_help else ()
71 with ArgvSetter(args) as out:
72 try:
73 module.run()
74 except SystemExit:
75 pass
76 assert "Usage: " in out.stdout.getvalue()
77
78
79@pytest.mark.slowtest

Callers 15

test_browse_rawFunction · 0.85
test_whatFunction · 0.85
test_bti2fiffFunction · 0.85
test_compare_fiffFunction · 0.85
test_show_fiffFunction · 0.85
test_clean_eog_ecgFunction · 0.85
test_compute_proj_exgFunction · 0.85
test_kit2fiffFunction · 0.85
test_make_scalp_surfacesFunction · 0.85
test_reportFunction · 0.85
test_surf2bemFunction · 0.85
test_watershed_bemFunction · 0.85

Calls 3

ArgvSetterClass · 0.90
getvalueMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected