@swainn, @shawncrawley, This fixes a test for compatibility with the latest version of social-auth-core. We need to get this merged so that the tests will pass for all of the other PRs.
The library made a seemingly innocuous change:
from:
value = response.get(name) or details.get(name) or details.get(alias)
to:
value = response.get(name, details.get(name, details.get(alias)))
The problem was that in the first case the details.get would not get evaluated unless response.get(name) returned None. Whereas in the second case it gets evaluated regardless. In our test we had a mock response with a name attribute, but we were not passing details.
@swainn, @shawncrawley, This fixes a test for compatibility with the latest version of
social-auth-core
. We need to get this merged so that the tests will pass for all of the other PRs.The library made a seemingly innocuous change:
from:
to:
The problem was that in the first case the
details.get
would not get evaluated unlessresponse.get(name)
returnedNone
. Whereas in the second case it gets evaluated regardless. In our test we had a mock response with aname
attribute, but we were not passingdetails
.