You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The reason is that reset_default_storage_dir() acts on the class attribute only and not on the instance attribute of the LocalClient in question. Because of Client.get_default_client() returning the same client instance for any path (saved as a class attribute), no new client gets instantiated to make use of the new directory. The tests don’t catch that because they create the clients explicitly.
The text was updated successfully, but these errors were encountered:
I believe the easiest way to fix this is to call get_default_client inside reset_default_storage_dir and then also call reset_default_storage_dir on that instance of the client.
The reason is that
reset_default_storage_dir()
acts on the class attribute only and not on the instance attribute of theLocalClient
in question. Because ofClient.get_default_client()
returning the same client instance for any path (saved as a class attribute), no new client gets instantiated to make use of the new directory. The tests don’t catch that because they create the clients explicitly.The text was updated successfully, but these errors were encountered: