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)
from exactly_lib.util.str_ import name DESCRIPTION_DELIMITER = '`' DESCRIPTION_DELIMITER_CHAR_NAME = name.NameWithGenderWithFormatting( name.a_name(name.name_with_plural_s('backtick'))) END_OF_FILE = 'END-OF-FILE' END_OF_LINE = 'END-OF-LINE' INSTRUCTION = name.NameWithGenderWithFormatting( name.an_name(name.name_with_plural_s('instruction'))) INSTRUCTION_DESCRIPTION = name.NameWithGenderWithFormatting( name.an_name(name.name_with_plural_s('instruction description'))) def format_constant(constant: str) -> str: return '"' + constant + '"'
from exactly_lib.definitions import formatting from exactly_lib.definitions.entity import all_entity_types from exactly_lib.definitions.formatting import misc_name_with_formatting from exactly_lib.util.str_ import name WHITESPACE = 'whitespace' RESERVED_WORD_NAME = name.a_name(name.name_with_plural_s('reserved word')) SYNTAX_ERROR_NAME = name.a_name(name.name_with_plural_s('syntax error')) FILE_ACCESS_ERROR_NAME = name.a_name( name.name_with_plural_s('file access error')) EXIT_IDENTIFIER = misc_name_with_formatting( name.an_name(name.name_with_plural_s('exit identifier'))) EXIT_CODE = misc_name_with_formatting( name.an_name(name.name_with_plural_s('exit code'))) EXIT_CODE_TITLE = EXIT_CODE.singular.capitalize() STDOUT = 'stdout' STDERR = 'stderr' STDIN = 'stdin' OS_PROCESS_NAME = misc_name_with_formatting( name.an_name(name.Name('OS process', 'OS processes'))) CURRENT_OS = 'current OS' NEW_LINE_STRING_CONSTANT = formatting.string_constant('\\n')
from exactly_lib.definitions.formatting import misc_name_with_formatting from exactly_lib.util.str_ import name STEP_PRE_PROCESSING = misc_name_with_formatting( name.a_name(name.name_with_plural_s('preprocessing'))) STEP_VALIDATION = misc_name_with_formatting( name.a_name(name.name_with_plural_s('validation'))) STEP_EXECUTION = misc_name_with_formatting( name.an_name(name.name_with_plural_s('execution')))
from exactly_lib.util.str_ import name INTEGER_MATCHER_MODEL = name.NameWithGenderWithFormatting( name.an_name_with_plural_s('integer')) LINE_MATCHER_MODEL = name.NameWithGenderWithFormatting( name.a_name_with_plural_s('line')) FILE_MATCHER_MODEL = name.NameWithGenderWithFormatting( name.a_name_with_plural_s('file')) TEXT_MODEL = name.NameWithGenderWithFormatting( name.a_name_with_plural_s('text')) FILES_MATCHER_MODEL = name.NameWithGenderWithFormatting( name.a_name(name.Name('set of files', 'sets of files')))