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

shahar 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 c881565c07 passing the filetype for SlackAPIFileOperator (#43069)
c881565c07 is described below

commit c881565c0741b4beb50552eebde130de6dc29c2d
Author: Bowrna <[email protected]>
AuthorDate: Thu Oct 17 17:49:32 2024 +0530

    passing the filetype for SlackAPIFileOperator (#43069)
---
 providers/src/airflow/providers/slack/operators/slack.py | 1 +
 providers/tests/slack/operators/test_slack.py            | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/providers/src/airflow/providers/slack/operators/slack.py 
b/providers/src/airflow/providers/slack/operators/slack.py
index 883f8eb990..64be693af6 100644
--- a/providers/src/airflow/providers/slack/operators/slack.py
+++ b/providers/src/airflow/providers/slack/operators/slack.py
@@ -265,6 +265,7 @@ class SlackAPIFileOperator(SlackAPIOperator):
             channels=self.channels,
             # For historical reason SlackAPIFileOperator use filename as 
reference to file
             file=self.filename,
+            filetype=self.filetype,
             content=self.content,
             initial_comment=self.initial_comment,
             title=self.title,
diff --git a/providers/tests/slack/operators/test_slack.py 
b/providers/tests/slack/operators/test_slack.py
index f276ee4315..f3b02839a3 100644
--- a/providers/tests/slack/operators/test_slack.py
+++ b/providers/tests/slack/operators/test_slack.py
@@ -253,6 +253,7 @@ class TestSlackAPIFileOperator:
                 channels="#test-channel",
                 content="test-content",
                 file=None,
+                filetype=None,
                 initial_comment=initial_comment,
                 title=title,
             )
@@ -282,6 +283,7 @@ class TestSlackAPIFileOperator:
                 channels="C1234567890",
                 content=None,
                 file="/dev/null",
+                filetype=None,
                 initial_comment=initial_comment,
                 title=title,
             )

Reply via email to