MCPcopy
hub / github.com/pex-tool/pex / assert_success

Method assert_success

testing/__init__.py:431–441  ·  view source on GitHub ↗
(
        self,
        expected_output_re=None,  # type: Optional[str]
        expected_error_re=None,  # type: Optional[str]
        re_flags=0,  # type: int
    )

Source from the content-addressed store, hash-verified

429 return PEX(self.exe)
430
431 def assert_success(
432 self,
433 expected_output_re=None, # type: Optional[str]
434 expected_error_re=None, # type: Optional[str]
435 re_flags=0, # type: int
436 ):
437 # type: (...) -> None
438 assert self.return_code == 0, to_unicode(
439 "integration test failed: return_code={return_code}, output={output}, error={error}"
440 ).format(return_code=self.return_code, output=self.output, error=self.error)
441 self.assert_output(expected_output_re, expected_error_re, re_flags)
442
443 def assert_failure(
444 self,

Callers 15

createFunction · 0.80
test_build_pexFunction · 0.80
assert_run_pexFunction · 0.80
pexFunction · 0.80
test_venv_copiesFunction · 0.80
test_relocatable_venvFunction · 0.80
test_compileFunction · 0.80
create_pex_venvFunction · 0.80
test_custom_promptFunction · 0.80

Calls 2

assert_outputMethod · 0.95
to_unicodeFunction · 0.90

Tested by 15

createFunction · 0.64
test_build_pexFunction · 0.64
assert_run_pexFunction · 0.64
pexFunction · 0.64
test_venv_copiesFunction · 0.64
test_relocatable_venvFunction · 0.64
test_compileFunction · 0.64
create_pex_venvFunction · 0.64
test_custom_promptFunction · 0.64