Nataneljpwd commented on code in PR #52700:
URL: https://github.com/apache/airflow/pull/52700#discussion_r2291644300


##########
providers/sftp/tests/unit/sftp/sensors/test_sftp.py:
##########
@@ -193,9 +201,10 @@ def 
test_multiple_files_present_with_pattern_and_newer_than(self, sftp_hook_mock
         )
         context = {"ds": "1970-01-00"}
         output = sftp_sensor.poke(context)
-        sftp_hook_mock.return_value.get_mod_time.assert_has_calls(
-            [mock.call("/path/to/file/text_file1.txt"), 
mock.call("/path/to/file/text_file2.txt")]
-        )
+        sftp_hook_mock.return_value.get_mod_time.assert_has_calls([
+            mock.call("/path/to/file/text_file1.txt"),
+            mock.call("/path/to/file/text_file2.txt"),
+        ])

Review Comment:
   done



##########
providers/sftp/tests/unit/sftp/sensors/test_sftp.py:
##########
@@ -220,13 +229,11 @@ def 
test_multiple_old_files_present_with_pattern_and_newer_than(self, sftp_hook_
         )
         context = {"ds": "1970-01-00"}
         output = sftp_sensor.poke(context)
-        sftp_hook_mock.return_value.get_mod_time.assert_has_calls(
-            [
-                mock.call("/path/to/file/text_file1.txt"),
-                mock.call("/path/to/file/text_file2.txt"),
-                mock.call("/path/to/file/text_file3.txt"),
-            ]
-        )
+        sftp_hook_mock.return_value.get_mod_time.assert_has_calls([
+            mock.call("/path/to/file/text_file1.txt"),
+            mock.call("/path/to/file/text_file2.txt"),
+            mock.call("/path/to/file/text_file3.txt"),
+        ])

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to