This is an automated email from the ASF dual-hosted git repository.

husseinawala pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 3ef770e3d2 Remove explicit str concat from Airflow providers package 
and tests (#33860)
3ef770e3d2 is described below

commit 3ef770e3d25b1b0a82308b37c9fd21ac8566f296
Author: Hussein Awala <[email protected]>
AuthorDate: Wed Aug 30 00:17:18 2023 +0200

    Remove explicit str concat from Airflow providers package and tests (#33860)
---
 airflow/providers/amazon/aws/sensors/dynamodb.py     | 2 +-
 tests/providers/amazon/aws/operators/test_glue.py    | 2 +-
 tests/providers/redis/log/test_redis_task_handler.py | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/airflow/providers/amazon/aws/sensors/dynamodb.py 
b/airflow/providers/amazon/aws/sensors/dynamodb.py
index 298667e999..bd820572ac 100644
--- a/airflow/providers/amazon/aws/sensors/dynamodb.py
+++ b/airflow/providers/amazon/aws/sensors/dynamodb.py
@@ -84,7 +84,7 @@ class DynamoDBValueSensor(BaseSensorOperator):
         key = {self.partition_key_name: self.partition_key_value}
         msg = (
             f"Checking table {self.table_name} for "
-            + f"item Partition Key: 
{self.partition_key_name}={self.partition_key_value}"
+            f"item Partition Key: 
{self.partition_key_name}={self.partition_key_value}"
         )
 
         if self.sort_key_name and self.sort_key_value:
diff --git a/tests/providers/amazon/aws/operators/test_glue.py 
b/tests/providers/amazon/aws/operators/test_glue.py
index ee682f09e0..c5f291f7cf 100644
--- a/tests/providers/amazon/aws/operators/test_glue.py
+++ b/tests/providers/amazon/aws/operators/test_glue.py
@@ -225,7 +225,7 @@ class TestGlueJobOperator:
         aws_domain = GlueJobRunDetailsLink.get_aws_domain("aws")
         glue_job_run_url = (
             f"https://console.{aws_domain}/gluestudio/home?region=";
-            + f"{region}#/job/test_job_name%2Fwith_slash/run/{JOB_RUN_ID}"
+            f"{region}#/job/test_job_name%2Fwith_slash/run/{JOB_RUN_ID}"
         )
 
         with mock.patch.object(glue.log, "info") as mock_log_info:
diff --git a/tests/providers/redis/log/test_redis_task_handler.py 
b/tests/providers/redis/log/test_redis_task_handler.py
index 3dc481074d..e27d63fdc4 100644
--- a/tests/providers/redis/log/test_redis_task_handler.py
+++ b/tests/providers/redis/log/test_redis_task_handler.py
@@ -63,7 +63,7 @@ class TestRedisTaskHandler:
 
         key = (
             "dag_id=dag_for_testing_redis_task_handler/run_id=test"
-            + "/task_id=task_for_testing_redis_log_handler/attempt=1.log"
+            "/task_id=task_for_testing_redis_log_handler/attempt=1.log"
         )
 
         with patch("redis.Redis.pipeline") as pipeline:
@@ -83,7 +83,7 @@ class TestRedisTaskHandler:
 
         key = (
             "dag_id=dag_for_testing_redis_task_handler/run_id=test"
-            + "/task_id=task_for_testing_redis_log_handler/attempt=1.log"
+            "/task_id=task_for_testing_redis_log_handler/attempt=1.log"
         )
 
         with patch("redis.Redis.lrange") as lrange:

Reply via email to