From e7a69328f2535422ccd2b845f6178e42b245e67b Mon Sep 17 00:00:00 2001 From: Peter Allen Webb Date: Thu, 19 Dec 2024 11:19:00 -0500 Subject: [PATCH] Reformat code for black. --- .../simple_snapshot/new_record_mode.py | 28 +++++++++++++++---- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/dbt-tests-adapter/dbt/tests/adapter/simple_snapshot/new_record_mode.py b/dbt-tests-adapter/dbt/tests/adapter/simple_snapshot/new_record_mode.py index 0430e8a2..31005763 100644 --- a/dbt-tests-adapter/dbt/tests/adapter/simple_snapshot/new_record_mode.py +++ b/dbt-tests-adapter/dbt/tests/adapter/simple_snapshot/new_record_mode.py @@ -241,10 +241,26 @@ def test_snapshot_new_record_mode( scd_id = 1 is_deleted = 2 assert len(check_result) == 2 - assert sum( - [1 for c in check_result if c[valid_to] is None and c[scd_id] is not None and c[is_deleted] == "True"] - ) == 1 - assert sum( - [1 for c in check_result if c[valid_to] is not None and c[scd_id] is not None and c[is_deleted] == "False"] - ) == 1 + assert ( + sum( + [ + 1 + for c in check_result + if c[valid_to] is None and c[scd_id] is not None and c[is_deleted] == "True" + ] + ) + == 1 + ) + assert ( + sum( + [ + 1 + for c in check_result + if c[valid_to] is not None + and c[scd_id] is not None + and c[is_deleted] == "False" + ] + ) + == 1 + ) assert check_result[0][scd_id] != check_result[1][scd_id]