UniSet 2.45.1
Класс tests.test_e2e.TestErrorReportingE2E

Открытые члены

 test_parse_error_shows_file_line_col (self)
 test_mapping_error_shows_message (self)
 test_unsupported_error_shows_file (self)
 test_type_error_shows_message (self)
 test_cli_parse_error_shows_on_stderr (self)
 test_cli_mapping_error_shows_on_stderr (self)
 test_all_error_types_are_sterror_subclasses (self)
 test_all_error_types_format_with_location (self)

Подробное описание

Tests that error types show correct file:line:col information.

Методы

◆ test_all_error_types_are_sterror_subclasses()

tests.test_e2e.TestErrorReportingE2E.test_all_error_types_are_sterror_subclasses ( self)
Verify all error classes inherit from STError for consistent handling.

◆ test_all_error_types_format_with_location()

tests.test_e2e.TestErrorReportingE2E.test_all_error_types_format_with_location ( self)
All error types should format file:line:col when location is provided.

◆ test_cli_mapping_error_shows_on_stderr()

tests.test_e2e.TestErrorReportingE2E.test_cli_mapping_error_shows_on_stderr ( self)
CLI should display mapping error on stderr for invalid YAML.

◆ test_cli_parse_error_shows_on_stderr()

tests.test_e2e.TestErrorReportingE2E.test_cli_parse_error_shows_on_stderr ( self)
CLI should display parse error on stderr with non-zero exit.

◆ test_mapping_error_shows_message()

tests.test_e2e.TestErrorReportingE2E.test_mapping_error_shows_message ( self)
MappingError for invalid YAML includes descriptive message.

◆ test_parse_error_shows_file_line_col()

tests.test_e2e.TestErrorReportingE2E.test_parse_error_shows_file_line_col ( self)
ParseError from invalid ST should include file, line, and column.

◆ test_type_error_shows_message()

tests.test_e2e.TestErrorReportingE2E.test_type_error_shows_message ( self)
STTypeError includes descriptive type information.

◆ test_unsupported_error_shows_file()

tests.test_e2e.TestErrorReportingE2E.test_unsupported_error_shows_file ( self)
UnsupportedError includes file information.