def purpose(self) -> Description:
        paragraphs = self._tp.fnap(_CORRESPONDENCE_DESCRIPTION)
        paragraphs += insertion_position_description(self.section_info.name,
                                                     self._contents_is_inserted_before_case_contents)

        return Description(self._tp.text(_SINGLE_LINE_DESCRIPTION),
                           paragraphs)
Beispiel #2
0
 def test_concept_with_complex_description(self):
     # ARRANGE #
     concept = PlainConceptTestImpl(
         a_name(Name('name', 'names')),
         Description(text('single line name'), [para('rest paragraph')]))
     renderer = sut.IndividualConceptConstructor(concept)
     # ACT #
     actual = renderer.apply(CONSTRUCTION_ENVIRONMENT)
     # ASSERT #
     struct_check.is_article_contents.apply(self, actual)
Beispiel #3
0
 def test_conf_param_with_only_single_line_description(self):
     # ARRANGE #
     doc = ConfigurationParameterTestImpl(
         'conf_param_name', Description(text('single line name'), []),
         'default value')
     constructor = sut.IndividualConfParamConstructor(doc)
     # ACT #
     actual = constructor.apply(CONSTRUCTION_ENVIRONMENT)
     # ASSERT #
     struct_check.is_article_contents.apply(self, actual)
Beispiel #4
0
 def purpose(self) -> DescriptionWithSubSections:
     tp = TextParser({
         'reporter_option':
         formatting.cli_option(OPTION_FOR_REPORTER),
         'default_reporter':
         formatting.entity(reporters.DEFAULT_REPORTER.singular_name),
     })
     return from_simple_description(
         Description(self.single_line_description(),
                     tp.fnap(_DESCRIPTION_REST)))
Beispiel #5
0
 def test_conf_param_with_complex_description(self):
     # ARRANGE #
     concept = ConfigurationParameterTestImpl(
         'conf_param_name',
         Description(text('single line name'), [para('rest paragraph')]),
         'default value')
     constructor = sut.IndividualConfParamConstructor(concept)
     # ACT #
     actual = constructor.apply(CONSTRUCTION_ENVIRONMENT)
     # ASSERT #
     struct_check.is_article_contents.apply(self, actual)
Beispiel #6
0
 def purpose(self) -> DescriptionWithSubSections:
     tp = TextParser({
         'the_concept':
         formatting.concept(self.name().singular),
         'preprocessor_option':
         formatting.cli_option(OPTION_FOR_PREPROCESSOR),
         'is_a_system_cmd':
         misc_texts.IS_A_SYSTEM_CMD,
         'exit_code':
         misc_texts.EXIT_CODE,
     })
     return from_simple_description(
         Description(self.single_line_description(),
                     tp.fnap(_DESCRIPTION_REST)))
Beispiel #7
0
 def purpose(self) -> DescriptionWithSubSections:
     parser = TextParser({
         'phase':
         phase_names.PHASE_NAME_DICTIONARY,
         'the_concept':
         formatting.conf_param_(HDS_CASE_DIRECTORY_CONF_PARAM_INFO),
         'instruction':
         concepts.INSTRUCTION_CONCEPT_INFO.name,
         'dir_symbol':
         tcds_symbols.SYMBOL_HDS_CASE,
         'rel_option':
         formatting.cli_option(REL_HDS_CASE_OPTION),
         'symbol':
         concepts.SYMBOL_CONCEPT_INFO.name,
     })
     return from_simple_description(
         Description(self.single_line_description(),
                     parser.fnap(_REST_DESCRIPTION)))
Beispiel #8
0
 def purpose(self) -> Description:
     return Description(
         docs.text(
             'Lists test suites (sub suites) that are part of the suite.'),
         [])
Beispiel #9
0
 def purpose(self) -> Description:
     paragraphs = self._tp.fnap(_PURPOSE_REST_TEXT)
     paragraphs += test_case_phase_sections.insertion_position_description(
         self.section_info.name, True)
     return Description(
         self._tp.text(_PURPOSE_SINGLE_LINE_DESCRIPTION_TEXT), paragraphs)
Beispiel #10
0
 def purpose(self) -> Description:
     return Description(self._tp.text(ONE_LINE_DESCRIPTION),
                        self._tp.fnap(REST_OF_DESCRIPTION))
Beispiel #11
0
 def purpose(self) -> DescriptionWithSubSections:
     return from_simple_description(
         Description(self.single_line_description(),
                     [_sorted_conf_params_list()]))
Beispiel #12
0
 def purpose(self) -> Description:
     return Description(
         docs.text('Single line purpose for phase ' + self.name.syntax),
         [docs.para('Rest of purpose for phase ' + self.name.syntax)])
Beispiel #13
0
 def purpose(self) -> Description:
     return Description(self._tp.text(ONE_LINE_DESCRIPTION),
                        self._tp.fnap(REST_OF_DESCRIPTION) +
                        [result_sub_dir_files_table()] +
                        self._tp.fnap(_RELATION_TO_ACTOR__TO_BE_SEPARATE_SECTION))
Beispiel #14
0
 def purpose(self) -> Description:
     first_line = self._parser.text(ONE_LINE_DESCRIPTION)
     remaining_lines = []
     return Description(first_line, remaining_lines)
Beispiel #15
0
 def purpose(self) -> DescriptionWithSubSections:
     return from_simple_description(
         Description(self.single_line_description(),
                     [execution_modes_list()]))