You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/06 16:12:28 UTC
[GitHub] [airflow] potiuk edited a comment on pull request #18752: Open src and dst in binary for samba copy
potiuk edited a comment on pull request #18752:
URL: https://github.com/apache/airflow/pull/18752#issuecomment-936485659
> > Would it be possible to add a test for this?
>
> I struggled to think of a test that can add any value here while mocking all interactions with the underlying `smbprotocol` library. Mocking `open` and the `open_file` method to ensure they are both opened using binary and/or ensuring that `copyfileobj` only takes file-like objects whose read and write methods expect binary strings seems like the only options, but I didn't that having that as a test helped.
My thoughts exactly. For me that's one of those fixes for which the unit tests bring no value, just add complexitty really.
--
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: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org