MCPcopy Create free account
hub / github.com/ElementsProject/lightning / check_stderr

Method check_stderr

tests/test_reckless.py:114–127  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112 return matching
113
114 def check_stderr(self):
115 def output_okay(out):
116 for warning in ['[notice]', 'WARNING:', 'npm WARN',
117 'npm notice', 'DEPRECATION:', 'Creating virtualenv',
118 'config file not found:', 'press [Y]']:
119 if out.startswith(warning):
120 return True
121 return False
122 for e in self.stderr:
123 if len(e) < 1:
124 continue
125 # Don't err on verbosity from pip, npm
126 if not output_okay(e):
127 raise Exception(f'reckless stderr contains `{e}`')
128
129
130def reckless(cmds: list, dir: PosixPath = None,

Callers 4

test_installFunction · 0.80
test_poetry_installFunction · 0.80
test_disable_enableFunction · 0.80
test_reckless_uv_installFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected