Lib dataiku-api-client-python Python in unit test mock DSSClient
Ludo
Registered Posts: 1 ✭
Hi Team,
In my pyhton project, I use the "dataiku-api-client-python" library. As part of the unit test I would like to mock the DSSxxx objects.
How can I mock a DSSClient and for example?
import dataiku client = dataiku.api_client() connection = client.get_connection("my_connection_name") settings = connection.get_settings() readability = settings.details_readability readability.set_readability(False, "group1", "group2") settings.save()
for exemple how I mock the return of get_connection to have a DSSConnectionSettings in order to simulate the save ?