I am using Py.test to implement integration testing for uploading photos into Picasa. However, the authentication method from oauth2client.flow_from_clientsecrets (that should open a web-browser to authentication URL), simply stopped.
I am not sure about why it occur though, is it because from py.test we can't create/span new process? This is because oauth2client.flow_from_clientsecrets will call webbrowser.open that in turn will call subprocess.Popen
@Bruno Oliveira is right. I try to use a clean py.test to test flickr/picasa auth, and it's able to open a web-browser. The problem may lies in other custom library that being developed.
Thanks!
PS: I will report it here if I found why webbrowser.open won't work
How to solve thread blocking in Py.test?