test(stabilization): Fix ai_style_formatter test expectations and integrate vlogger
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
## Phase 6: Test Suite Stabilization (High-Signal Reporting)
|
## Phase 6: Test Suite Stabilization (High-Signal Reporting)
|
||||||
- [x] Task: Conductor - Resolve API/Method name drift (e.g., `run_linear` -> `run` in ConductorEngine).
|
- [x] Task: Conductor - Resolve API/Method name drift (e.g., `run_linear` -> `run` in ConductorEngine).
|
||||||
- **Requirement:** Implement "Before vs After" state tables in `logs/test/unique_signature/<script_name>.txt`.
|
- **Requirement:** Implement "Before vs After" state tables in `logs/test/unique_signature/<script_name>.txt`.
|
||||||
- [ ] Task: Conductor - Fix `ai_style_formatter.py` test expectations for ultra-compact style.
|
- [x] Task: Conductor - Fix `ai_style_formatter.py` test expectations for ultra-compact style.
|
||||||
- **Requirement:** Log table-based comparison of code states in `logs/test/unique_signature/test_ai_style_formatter.txt`.
|
- **Requirement:** Log table-based comparison of code states in `logs/test/unique_signature/test_ai_style_formatter.txt`.
|
||||||
- [ ] Task: Conductor - Align `tier4_interceptor.py` tests with current PowerShell output formatting.
|
- [ ] Task: Conductor - Align `tier4_interceptor.py` tests with current PowerShell output formatting.
|
||||||
- **Requirement:** Log expected vs actual PowerShell output mappings in `logs/test/unique_signature/test_tier4_interceptor.txt`.
|
- **Requirement:** Log expected vs actual PowerShell output mappings in `logs/test/unique_signature/test_tier4_interceptor.txt`.
|
||||||
@@ -51,3 +51,4 @@
|
|||||||
- **Requirement:** Log comprehensive environment telemetry (Before/After/Delta) in `logs/test/unique_signature/live_gui_diag.txt`.
|
- **Requirement:** Log comprehensive environment telemetry (Before/After/Delta) in `logs/test/unique_signature/live_gui_diag.txt`.
|
||||||
- [ ] Task: Conductor - User Manual Verification 'Phase 6: Test Suite Stabilization'
|
- [ ] Task: Conductor - User Manual Verification 'Phase 6: Test Suite Stabilization'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ def test_continuation_indentation() -> None:
|
|||||||
)
|
)
|
||||||
assert format_code(source) == expected
|
assert format_code(source) == expected
|
||||||
|
|
||||||
def test_multiple_top_level_definitions() -> None:
|
def test_multiple_top_level_definitions(vlogger) -> None:
|
||||||
source = textwrap.dedent("""\
|
source = textwrap.dedent("""\
|
||||||
class MyClass:
|
class MyClass:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
@@ -112,10 +112,14 @@ def test_multiple_top_level_definitions() -> None:
|
|||||||
"class MyClass:\n"
|
"class MyClass:\n"
|
||||||
" def __init__(self):\n"
|
" def __init__(self):\n"
|
||||||
" self.x = 1\n"
|
" self.x = 1\n"
|
||||||
|
"\n"
|
||||||
" def method(self):\n"
|
" def method(self):\n"
|
||||||
" pass\n"
|
" pass\n"
|
||||||
"\n"
|
"\n"
|
||||||
"def top_level():\n"
|
"def top_level():\n"
|
||||||
" pass\n"
|
" pass\n"
|
||||||
)
|
)
|
||||||
assert format_code(source) == expected
|
result = format_code(source)
|
||||||
|
vlogger.log_state("Formatted Output", repr(source), repr(result))
|
||||||
|
assert result == expected
|
||||||
|
vlogger.finalize("AI Style Formatter", "PASS", "Code states correctly match the 1-space ultra-compact style expectations.")
|
||||||
|
|||||||
Reference in New Issue
Block a user