Skip to content

Commit a63ce6b

Browse files
style: fix black formatting in dremio.py and spark.py
Co-Authored-By: Itamar Hartstein <haritamar@gmail.com>
1 parent 19652db commit a63ce6b

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

tests/e2e_dbt_project/external_seeders/dremio.py

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,18 @@ def _upload_csvs_to_minio(self) -> None:
184184
)
185185
self.run(
186186
[
187-
"docker", "run", "--rm",
188-
"--network", network,
189-
"-v", f"{self.data_dir}:/seed-data:ro",
190-
"--entrypoint", "/bin/sh",
187+
"docker",
188+
"run",
189+
"--rm",
190+
"--network",
191+
network,
192+
"-v",
193+
f"{self.data_dir}:/seed-data:ro",
194+
"--entrypoint",
195+
"/bin/sh",
191196
"minio/mc",
192-
"-c", mc_cmds,
197+
"-c",
198+
mc_cmds,
193199
]
194200
)
195201

@@ -391,7 +397,5 @@ def load(self) -> None:
391397
time.sleep(10)
392398

393399
if failures:
394-
raise RuntimeError(
395-
"Dremio seeding failed:\n - " + "\n - ".join(failures)
396-
)
400+
raise RuntimeError("Dremio seeding failed:\n - " + "\n - ".join(failures))
397401
print("\nDremio seed loading complete.")

tests/e2e_dbt_project/external_seeders/spark.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ def load(self) -> None:
7171
f"OPTIONS (path '{container_path}', header 'true', "
7272
f"inferSchema 'true')"
7373
)
74-
cursor.execute(
75-
f"DROP TABLE IF EXISTS {q(seed_schema)}.{q(table_name)}"
76-
)
74+
cursor.execute(f"DROP TABLE IF EXISTS {q(seed_schema)}.{q(table_name)}")
7775
cursor.execute(
7876
f"CREATE TABLE {q(seed_schema)}.{q(table_name)} "
7977
f"USING delta AS SELECT * FROM {q(tmp_view)}"

0 commit comments

Comments
 (0)