Skip to content

Commit e6cad2b

Browse files
committed
fix tests
1 parent 732601e commit e6cad2b

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

sqlmesh/migrations/v0056_restore_table_indexes.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88

99
def migrate_ddl(state_sync, **kwargs): # type: ignore
10+
schema = state_sync.schema
1011
engine_adapter = state_sync.engine_adapter
1112
if not engine_adapter.SUPPORTS_INDEXES:
1213
return

tests/integrations/jupyter/test_magics.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ def test_render(
168168

169169
assert output.stdout == ""
170170
assert output.stderr == ""
171-
assert len(output.outputs) == 1
172-
assert len(convert_all_html_output_to_text(output)[0]) > 2200
173-
assert len(convert_all_html_output_to_tags(output)[0]) > 150
171+
assert len(output.outputs) == 2
172+
assert len(convert_all_html_output_to_text(output)[1]) > 2200
173+
assert len(convert_all_html_output_to_tags(output)[1]) > 150
174174

175175

176176
@pytest.mark.slow
@@ -182,9 +182,9 @@ def test_render_no_format(
182182

183183
assert output.stdout == ""
184184
assert output.stderr == ""
185-
assert len(output.outputs) == 1
186-
assert len(convert_all_html_output_to_text(output)[0]) >= 700
187-
assert len(convert_all_html_output_to_tags(output)[0]) >= 50
185+
assert len(output.outputs) == 2
186+
assert len(convert_all_html_output_to_text(output)[1]) >= 700
187+
assert len(convert_all_html_output_to_tags(output)[1]) >= 50
188188

189189

190190
@pytest.mark.slow

0 commit comments

Comments
 (0)