Beispiel #1
0
def setup(instruction_name: str) -> SingleInstructionSetup:
    return SingleInstructionSetup(
        instruction_from_parts.Parser(
            cd_utils.parts_parser(is_after_act_phase=False)),
        cd_utils.TheInstructionDocumentation(instruction_name,
                                             is_after_act_phase=False,
                                             is_in_assert_phase=False))
Beispiel #2
0
def suite() -> unittest.TestSuite:
    return unittest.TestSuite([
        unittest.makeSuite(TestParse),
        unittest.makeSuite(TestSuccessfulScenarios),
        unittest.makeSuite(TestFailingScenarios),
        suite_for_instruction_documentation(
            sut.TheInstructionDocumentation('instruction name',
                                            is_after_act_phase=False,
                                            is_in_assert_phase=False)),
        suite_for_instruction_documentation(
            sut.TheInstructionDocumentation('instruction name',
                                            is_after_act_phase=True,
                                            is_in_assert_phase=False)),
        suite_for_instruction_documentation(
            sut.TheInstructionDocumentation('instruction name',
                                            is_after_act_phase=True,
                                            is_in_assert_phase=True)),
    ])