fredthomsen commented on pull request #18752:
URL: https://github.com/apache/airflow/pull/18752#issuecomment-936464880


   > 
   > 
   > 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.


-- 
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