autowisp.tests.test_parse_config_overwrites module

Class Inheritance Diagram

Inheritance diagram of TestParseConfigOverwrites

Unit tests for user_interface.parse_config_overwrites.

class autowisp.tests.test_parse_config_overwrites.TestParseConfigOverwrites(methodName='runTest')[source]

Bases: TestCase

Inheritance diagram of autowisp.tests.test_parse_config_overwrites.TestParseConfigOverwrites

Edge-case coverage for the configuration-line → overwrites parser.

test_blank_lines_skipped()[source]

Blank / whitespace-only lines do not appear in the output.

test_colon_separator()[source]

: is accepted as an alternative to =.

test_comment_only_lines_skipped()[source]

Lines starting with # are skipped entirely.

test_dash_and_dot_in_key()[source]

Parameter names with - and . are valid.

test_double_quoted_value()[source]

Double quotes are stripped; their inner content is kept verbatim.

test_inline_comment_stripped()[source]

A trailing # comment is not part of the value.

test_key_equals_value()[source]

Plain key = value produces {key: [(None, 'value')]}.

test_key_with_empty_value()[source]

key = (empty value) is recorded as None.

test_key_without_value()[source]

A bare key (no separator) is recorded with value None.

test_later_value_wins()[source]

A repeated key keeps the last value seen.

test_non_parameter_keys_excluded()[source]

project-home and split-channels are silently dropped.

Mirrors what autowisp/browser_interface/home/static/home/js/create.project.js strips before populating the BUI textarea; these are never valid DB parameter overrides.

test_section_headers_skipped()[source]

[section] headers from INI-style files are ignored.

test_semicolon_preserved_in_value()[source]

; is data, not a comment marker – preserve it verbatim.

test_single_quoted_value()[source]

Single quotes are stripped; their inner content is kept verbatim.

test_test_cfg_like_block()[source]

Sanity check on a multi-section block resembling test.cfg.