Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
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 ?