hydroshare / hsclient

A python client for interacting with HydroShare in an object oriented way.
https://hydroshare.github.io/hsclient/
BSD 3-Clause "New" or "Revised" License
1 stars 4 forks source link

ResourcePreview authors now defaults to empty list if not supplied or None/null #24

Closed aaraney closed 3 years ago

aaraney commented 3 years ago

ResourcePreview authors field is now forced to default to an empty list ([]), if field is not supplied or None / null is supplied as value. These changes follow @sblack-usu's proposed solution to #23,

updating the default from None to an empty list makes sense to me.

A unit test is also added to verify the desired behavior.

fixes #23

sblack-usu commented 3 years ago

requests in the tests are timing out against hydroshare. I need to get mocking setup until hydroshare can handle these requests better.