Skip to content

Commit af3b2cc

Browse files
committed
black .
1 parent 27abfff commit af3b2cc

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

nisystemlink/clients/notebook/_notebook_client.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ def _query_executions_response_handler(response: Response) -> List[models.Execut
2828

2929
return executions
3030

31+
3132
def _simple_response_handler(response: Response) -> dict:
3233
if response is None:
3334
return dict()
3435

3536
return response.json()
3637

38+
3739
class NotebookClient(BaseClient):
3840
def __init__(self, configuration: Optional[core.HttpConfiguration] = None):
3941
"""Initialize an instance.
@@ -300,7 +302,6 @@ def query_executions(
300302

301303
return self._query_executions(query=query_request)
302304

303-
304305
@response_handler(_simple_response_handler)
305306
@post("ninbexecution/v1/retry-executions")
306307
def retry_executions(self, ids: List[str]) -> None:
@@ -337,7 +338,9 @@ def cancel_executions(self, ids: List[str]) -> None:
337338

338339
@response_handler(_simple_response_handler)
339340
@post("ninbexecution/v1/create-executions-from-existing")
340-
def create_executions_from_existing(self, ids: List[str]) -> models.CreateExecutionsResponse:
341+
def create_executions_from_existing(
342+
self, ids: List[str]
343+
) -> models.CreateExecutionsResponse:
341344
"""Create new executions based on already existing succeeded executions.
342345
343346
Args:

nisystemlink/clients/notebook/models/_execution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ class Execution(JsonModel):
144144

145145
last_updated_timestamp: datetime
146146
"""Timestamp of when the notebook execution was last updated."""
147-
147+
148148
last_updated_by: str
149149
""""The user ID of the user who last updated the execution."""
150-
150+
151151
retry_count: int
152152
"""The number of manually retried attempts of the notebook execution."""
153153

nisystemlink/clients/spec/utilities/_dataframe_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ def __serialize_numeric_condition_range(value: NumericConditionValue) -> List[st
345345

346346

347347
def __serialize_condition_discrete_values(
348-
value: Union[NumericConditionValue, StringConditionValue]
348+
value: Union[NumericConditionValue, StringConditionValue],
349349
) -> List[str]:
350350
"""Serialize discrete values of a value.
351351

nisystemlink/clients/testmonitor/utilities/_dataframe_utilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def convert_results_to_dataframe(
3939

4040

4141
def __normalize_results_status(
42-
results_dict: List[Dict[str, Any]]
42+
results_dict: List[Dict[str, Any]],
4343
) -> List[Dict[str, Any]]:
4444
"""Gets dictionary of results data and modifies the status object.
4545

tests/integration/notebook/test_notebook_client.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -739,9 +739,7 @@ def test__query_executions_by_status_in_descending__returns_executions_sorted_by
739739
assert response[2].status == ExecutionStatus.IN_PROGRESS
740740

741741
@responses.activate
742-
def test__cancel_executions__return_inner_errors(
743-
self, client: NotebookClient
744-
):
742+
def test__cancel_executions__return_inner_errors(self, client: NotebookClient):
745743
return_value = {
746744
"innerErrors": ["Error1", "Error2"],
747745
}
@@ -757,11 +755,9 @@ def test__cancel_executions__return_inner_errors(
757755

758756
print(response)
759757
assert response["innerErrors"] == ["Error1", "Error2"]
760-
758+
761759
@responses.activate
762-
def test__retry_executions__return_inner_errors(
763-
self, client: NotebookClient
764-
):
760+
def test__retry_executions__return_inner_errors(self, client: NotebookClient):
765761
return_value = {
766762
"innerErrors": ["Error1", "Error2"],
767763
}
@@ -777,7 +773,7 @@ def test__retry_executions__return_inner_errors(
777773

778774
print(response)
779775
assert response["innerErrors"] == ["Error1", "Error2"]
780-
776+
781777
@responses.activate
782778
def test__create_executions_from_existing__return_inner_errors(
783779
self, client: NotebookClient
@@ -796,4 +792,4 @@ def test__create_executions_from_existing__return_inner_errors(
796792
response = client.retry_executions(["execution_id_1", "execution_id_2"])
797793

798794
print(response)
799-
assert response["innerErrors"] == ["Error1", "Error2"]
795+
assert response["innerErrors"] == ["Error1", "Error2"]

0 commit comments

Comments
 (0)