Skip to content

Commit b6fb5fc

Browse files
committed
pre-commit fixes
1 parent 4f4603e commit b6fb5fc

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

integration_tests/docker-compose-dremio.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ services:
2323
ports:
2424
- 9001:9001
2525
- 9000:9000
26-
command: [ "server", "/data", "--console-address", ":9001" ]
26+
command: ["server", "/data", "--console-address", ":9001"]
2727
volumes:
2828
- minio_data:/data
2929

@@ -65,7 +65,7 @@ services:
6565
- dremio_data:/opt/dremio/data:rw
6666
# Workaround for permission issues in podman
6767
user: "0"
68-
68+
6969
dremio-setup:
7070
image: alpine:latest
7171
container_name: dremio-setup
@@ -76,10 +76,10 @@ services:
7676
command: sh /dremio-setup.sh
7777
networks:
7878
- dremio-lakehouse
79-
79+
8080
networks:
8181
dremio-lakehouse:
8282

8383
volumes:
8484
dremio_data:
85-
minio_data:
85+
minio_data:

integration_tests/tests/dbt_project.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from uuid import uuid4
88

99
from data_seeder import DbtDataSeeder
10+
from dbt_utils import get_database_and_schema_properties
1011
from elementary.clients.dbt.base_dbt_runner import BaseDbtRunner
1112
from elementary.clients.dbt.factory import create_dbt_runner
12-
from dbt_utils import get_database_and_schema_properties
1313
from logger import get_logger
1414
from ruamel.yaml import YAML
1515

@@ -188,7 +188,9 @@ def test(
188188
test_id, materialization
189189
)
190190
else:
191-
database_property, schema_property = get_database_and_schema_properties(self.target)
191+
database_property, schema_property = get_database_and_schema_properties(
192+
self.target
193+
)
192194
props_yaml = {
193195
"version": 2,
194196
"sources": [

integration_tests/tests/dbt_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ def get_database_and_schema_properties(target: str, is_view: bool = False):
33
return "datalake", "root_path"
44
elif target == "clickhouse":
55
return "schema", "schema"
6-
return "database", "schema"
6+
return "database", "schema"

integration_tests/tests/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def __init__(self, target: str, project_dir: str):
77
self.dbt_runner = dbt_project.get_dbt_runner(target, project_dir)
88

99
def clear(self):
10-
#drop schema in dremio doesnt work, but we run the dremio tests with docker so its not really important to drop the schema
10+
# drop schema in dremio doesnt work, but we run the dremio tests with docker so its not really important to drop the schema
1111
if self.target != "dremio":
1212
self.dbt_runner.run_operation("elementary_tests.clear_env")
1313

integration_tests/tests/test_dbt_artifacts/test_artifacts.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,14 @@ def test_metrics_anomaly_score(dbt_project: DbtProject):
9696

9797
@pytest.mark.requires_dbt_version("1.8.0")
9898
def test_source_freshness_results(test_id: str, dbt_project: DbtProject):
99-
database_property, schema_property = get_database_and_schema_properties(dbt_project.target)
100-
loaded_at_field = '"UPDATE_TIME"::timestamp' if dbt_project.target != "dremio" else "TO_TIMESTAMP(SUBSTRING(UPDATE_TIME, 0, 23), 'YYYY-MM-DD HH24:MI:SS.FFF')"
99+
database_property, schema_property = get_database_and_schema_properties(
100+
dbt_project.target
101+
)
102+
loaded_at_field = (
103+
'"UPDATE_TIME"::timestamp'
104+
if dbt_project.target != "dremio"
105+
else "TO_TIMESTAMP(SUBSTRING(UPDATE_TIME, 0, 23), 'YYYY-MM-DD HH24:MI:SS.FFF')"
106+
)
101107
source_config = {
102108
"version": 2,
103109
"sources": [

0 commit comments

Comments
 (0)