コード例 #1
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(run.parts_parser(instruction_name)),
        run.TheInstructionDocumentation(
            instruction_name,
            run.NON_ASSERT_PHASE_SINGLE_LINE_DESCRIPTION,
            outcome=run.NON_ASSERT_PHASE_OUTCOME))
コード例 #2
0
ファイル: run.py プロジェクト: emilkarlen/exactly
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(run.parts_parser(instruction_name)),
        run.TheInstructionDocumentation(
            instruction_name,
            single_line_description=_get_single_line_description(),
            outcome=_get_outcome,
        ))
コード例 #3
0
def suite() -> unittest.TestSuite:
    return unittest.TestSuite([
        unittest.makeSuite(TestExecuteProgramWithShellArgumentList),
        unittest.makeSuite(TestExecuteInterpret),
        unittest.makeSuite(TestSource),
        suite_for_instruction_documentation(sut.TheInstructionDocumentation('instruction name',
                                                                            'single line description',
                                                                            _get_outcome)),
    ])