test(stabilization): Fix ai_style_formatter test expectations and integrate vlogger
This commit is contained in:
@@ -95,7 +95,7 @@ def test_continuation_indentation() -> None:
|
||||
)
|
||||
assert format_code(source) == expected
|
||||
|
||||
def test_multiple_top_level_definitions() -> None:
|
||||
def test_multiple_top_level_definitions(vlogger) -> None:
|
||||
source = textwrap.dedent("""\
|
||||
class MyClass:
|
||||
def __init__(self):
|
||||
@@ -112,10 +112,14 @@ def test_multiple_top_level_definitions() -> None:
|
||||
"class MyClass:\n"
|
||||
" def __init__(self):\n"
|
||||
" self.x = 1\n"
|
||||
"\n"
|
||||
" def method(self):\n"
|
||||
" pass\n"
|
||||
"\n"
|
||||
"def top_level():\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