From 87bd585a784944ea2391ac47c3379ac30b484e81 Mon Sep 17 00:00:00 2001 From: Guen Prawiroatmodjo Date: Mon, 29 Jul 2024 09:40:24 -0700 Subject: [PATCH] formatting --- duckdb_engine/tests/test_basic.py | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/duckdb_engine/tests/test_basic.py b/duckdb_engine/tests/test_basic.py index aadefb2f..24e52cbd 100644 --- a/duckdb_engine/tests/test_basic.py +++ b/duckdb_engine/tests/test_basic.py @@ -614,10 +614,14 @@ def test_with_cache(tmp_path: Path) -> None: engine2 = create_engine(f"duckdb:///{tmp_db_path}?threads=2") with engine1.connect() as conn1: with engine2.connect() as conn2: - res1 = conn1.execute(text("select value from duckdb_settings() where name = 'threads'")).fetchall() - res2 = conn2.execute(text("select value from duckdb_settings() where name = 'threads'")).fetchall() + res1 = conn1.execute( + text("select value from duckdb_settings() where name = 'threads'") + ).fetchall() + res2 = conn2.execute( + text("select value from duckdb_settings() where name = 'threads'") + ).fetchall() assert res1 == res2 - assert res1[0][0] == '1' + assert res1[0][0] == "1" def test_no_cache(tmp_path: Path) -> None: @@ -626,8 +630,12 @@ def test_no_cache(tmp_path: Path) -> None: engine2 = create_engine(f"duckdb:///{tmp_db_path}?threads=2&user=2") with engine1.connect() as conn1: with engine2.connect() as conn2: - res1 = conn1.execute(text("select value from duckdb_settings() where name = 'threads'")).fetchall() - res2 = conn2.execute(text("select value from duckdb_settings() where name = 'threads'")).fetchall() + res1 = conn1.execute( + text("select value from duckdb_settings() where name = 'threads'") + ).fetchall() + res2 = conn2.execute( + text("select value from duckdb_settings() where name = 'threads'") + ).fetchall() assert res1 != res2 - assert res1[0][0] == '1' - assert res2[0][0] == '2' + assert res1[0][0] == "1" + assert res2[0][0] == "2"