Skip to content

Commit 48fbd89

Browse files
committed
fixed static styling and connection
1 parent fbb0711 commit 48fbd89

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

airflow/providers/apache/livy/hooks/livy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(
7676
livy_conn_id: str = default_conn_name,
7777
extra_options: Optional[Dict[str, Any]] = None,
7878
extra_headers: Optional[Dict[str, Any]] = None,
79-
auth_type: Optional[Any] = None
79+
auth_type: Optional[Any] = None,
8080
) -> None:
8181
super().__init__(http_conn_id=livy_conn_id)
8282
self.extra_headers = extra_headers or {}

airflow/providers/apache/livy/operators/livy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def get_hook(self) -> LivyHook:
131131
livy_conn_id=self._livy_conn_id,
132132
extra_headers=self._extra_headers,
133133
extra_options=self._extra_options,
134-
auth_type=self._livy_conn_auth_type
134+
auth_type=self._livy_conn_auth_type,
135135
)
136136
return self._livy_hook
137137

airflow/providers/apache/livy/sensors/livy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_hook(self) -> LivyHook:
6363
self._livy_hook = LivyHook(
6464
livy_conn_id=self._livy_conn_id,
6565
extra_options=self._extra_options,
66-
auth_type=self._livy_conn_auth_type
66+
auth_type=self._livy_conn_auth_type,
6767
)
6868
return self._livy_hook
6969

tests/providers/apache/livy/hooks/test_livy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import json
1919
import unittest
20-
from unittest.mock import patch, MagicMock
20+
from unittest.mock import MagicMock, patch
2121

2222
import pytest
2323
import requests_mock
@@ -47,7 +47,7 @@ def setUpClass(cls):
4747
)
4848
db.merge_conn(Connection(conn_id='missing_host', conn_type='http', port=1234))
4949
db.merge_conn(Connection(conn_id='invalid_uri', uri='http://invalid_uri:4321'))
50-
db.merge_conn(Connection(conn_id='with_credentials', login='login', password='secret', host='host'))
50+
db.merge_conn(Connection(conn_id='with_credentials', login='login', password='secret', conn_type='http', host='host'))
5151

5252
def test_build_get_hook(self):
5353

0 commit comments

Comments
 (0)