Skip to content

Commit

Permalink
fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
matarpeles committed Oct 29, 2023
1 parent 4c7f3f8 commit f9b45dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion app/invokers/gitlab_pipeline_invoker.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ def invoke(self, body: dict, project_path: str) -> None:
logger.info("GitLabPipelineInvoker - start - project: %s", project_path)

res = requests.post(
f"{settings.GITLAB_URL}/api/v4/projects/{urllib.parse.quote(project_path, safe='')}/trigger/pipeline",
f"{settings.GITLAB_URL}/api/v4/projects/"
f"{urllib.parse.quote(project_path, safe='')}/trigger/pipeline",
json=body,
timeout=settings.GITLAB_PIPELINE_INVOKER_TIMEOUT,
)
Expand Down
8 changes: 2 additions & 6 deletions tests/unit/processors/kafka/test_kafka_to_gitlab_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,7 @@ def test_single_stream_with_subgroup_in_project_name(
) -> None:
Timer(0.01, terminate_consumer).start()

with mock.patch.object(consumer_logger, "error") as mock_error, mock.patch.object(
gitlab_processor_logger, "info"
) as mock_info:
with mock.patch.object(gitlab_processor_logger, "info") as mock_info:

streamer = KafkaStreamer(Consumer())
streamer.stream()
Expand Down Expand Up @@ -249,9 +247,7 @@ def test_single_stream_with_subgroup_in_project_name_failure(
) -> None:
Timer(0.01, terminate_consumer).start()

with mock.patch.object(consumer_logger, "error") as mock_error, mock.patch.object(
gitlab_processor_logger, "info"
) as mock_info:
with mock.patch.object(gitlab_processor_logger, "info") as mock_info:

streamer = KafkaStreamer(Consumer())
streamer.stream()
Expand Down

0 comments on commit f9b45dc

Please sign in to comment.