Skip to content

Commit bbdc8ee

Browse files
committed
Fix test
1 parent 86dc088 commit bbdc8ee

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

tests/core/test_test.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,8 +2245,6 @@ def test_test_output(tmp_path: Path) -> None:
22452245
rows:
22462246
- item_id: 1
22472247
num_orders: 2
2248-
- item_id: 2
2249-
num_orders: 2
22502248
- item_id: 4
22512249
num_orders: 3
22522250
"""
@@ -2270,7 +2268,7 @@ def test_test_output(tmp_path: Path) -> None:
22702268
assert (
22712269
f"""This is a test
22722270
----------------------------------------------------------------------
2273-
Data mismatch
2271+
Data mismatch
22742272
┏━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━┓
22752273
┃ ┃ item_id: ┃ ┃ num_orders: ┃ num_orders: ┃
22762274
┃ Row ┃ Expected ┃ item_id: Actual ┃ Expected ┃ Actual ┃
@@ -2294,14 +2292,14 @@ def test_test_output(tmp_path: Path) -> None:
22942292
assert (
22952293
f"""This is a test
22962294
----------------------------------------------------------------------
2297-
Column 'item_id' mismatch
2295+
Column 'item_id' mismatch
22982296
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
22992297
┃ Row ┃ Expected ┃ Actual ┃
23002298
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
23012299
│ 0 │ 4.0 │ 2.0 │
23022300
└─────────────┴────────────────────────┴───────────────────┘
23032301
2304-
Column 'num_orders' mismatch
2302+
Column 'num_orders' mismatch
23052303
┏━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┓
23062304
┃ Row ┃ Expected ┃ Actual ┃
23072305
┡━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━┩
@@ -2357,7 +2355,7 @@ def test_test_output(tmp_path: Path) -> None:
23572355
col_5: 2
23582356
col_6: 1
23592357
col_7: 0
2360-
2358+
23612359
"""
23622360

23632361
wide_test_file.write_text(wide_test_file_content)
@@ -2366,15 +2364,15 @@ def test_test_output(tmp_path: Path) -> None:
23662364
context.test()
23672365

23682366
assert (
2369-
"""Data mismatch
2367+
"""Data mismatch
23702368
┏━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━┳━━━━━━━━━┳━━━━━━━━┓
23712369
┃ ┃ col_1: ┃ col_1: ┃ col_2: ┃ col_2: ┃ col_3: ┃ col_3: ┃ col_4: ┃ col_4: ┃
23722370
┃ Row ┃ Expec… ┃ Actual ┃ Expec… ┃ Actual ┃ Expec… ┃ Actual ┃ Expect… ┃ Actual ┃
23732371
┡━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━╇━━━━━━━━━╇━━━━━━━━┩
23742372
│ 0 │ 6 │ 1 │ 5 │ 2 │ 4 │ 3 │ 3 │ 4 │
23752373
└─────┴────────┴────────┴────────┴────────┴────────┴────────┴─────────┴────────┘
23762374
2377-
Data mismatch
2375+
Data mismatch
23782376
┏━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━┳━━━━━━━━━━━━┓
23792377
┃ ┃ col_5: ┃ col_5: ┃ col_6: ┃ col_6: ┃ col_7: ┃ col_7: ┃
23802378
┃ Row ┃ Expected ┃ Actual ┃ Expected ┃ Actual ┃ Expected ┃ Actual ┃
@@ -2410,7 +2408,7 @@ def test_test_output_with_invalid_model_name(tmp_path: Path) -> None:
24102408
- item_id: 1
24112409
num_orders: 2
24122410
- item_id: 2
2413-
num_orders: 2
2411+
num_orders: 2
24142412
"""
24152413
)
24162414

@@ -2460,7 +2458,7 @@ def test_number_of_tests_found(tmp_path: Path) -> None:
24602458
num_orders: 2
24612459
- item_id: 2
24622460
num_orders: 1
2463-
2461+
24642462
test_example_full_model2:
24652463
model: sqlmesh_example.full_model
24662464
inputs:

0 commit comments

Comments
 (0)