dabla commented on code in PR #37821:
URL: https://github.com/apache/airflow/pull/37821#discussion_r1511113876
##########
tests/providers/microsoft/azure/transfers/test_local_to_adls.py:
##########
@@ -59,22 +56,3 @@ def test_execute_raises_for_bad_glob_val(self, mock_hook):
with pytest.raises(AirflowException) as ctx:
operator.execute(None)
assert str(ctx.value) == "Recursive glob patterns using `**` are not
supported"
-
-
@mock.patch("airflow.providers.microsoft.azure.transfers.local_to_adls.AzureDataLakeHook")
- def test_extra_options_is_passed(self, mock_hook):
- operator = LocalFilesystemToADLSOperator(
- task_id=TASK_ID,
- local_path=LOCAL_PATH,
- remote_path=REMOTE_PATH,
- extra_upload_options={"run": False},
- )
- operator.execute(None)
- mock_hook.return_value.upload_file.assert_called_once_with(
- local_path=LOCAL_PATH,
- remote_path=REMOTE_PATH,
- nthreads=64,
- overwrite=True,
- buffersize=4194304,
- blocksize=4194304,
- run=False, # extra upload options
- )
Review Comment:
Oeps that will be a wrong refactoring of my part :)
--
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]