Skip to content

Commit

Permalink
Fix broken test case for xing backend
Browse files Browse the repository at this point in the history
  • Loading branch information
omab committed Dec 26, 2016
1 parent b78159c commit 66ceb79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Added Dockerfile to simplify the running of tests (`make docker-tox`)

### Changed
- Fixed Xing backend testing broken by previous change
- Fixed Xing backend dropping `callback_uri` and `oauth_verifier` parameters on authenticated API calls.
Refs [#871](https://github.com/omab/python-social-auth/issues/871)
- Updated slack backend implementation, update API endpoints used, add test case.
Expand Down
6 changes: 4 additions & 2 deletions social_core/tests/backends/test_xing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ class XingOAuth1Test(OAuth1Test):
backend_path = 'social_core.backends.xing.XingOAuth'
user_data_url = 'https://api.xing.com/v1/users/me.json'
expected_username = 'FooBar'
access_token_body = json.dumps({
access_token_body = urlencode({
'access_token': 'foobar',
'token_type': 'bearer',
'user_id': '123456_abcdef'
'user_id': '123456_abcdef',
'oauth_token_secret': 'foobar-secret',
'oauth_token': 'foobar',
})
request_token_body = urlencode({
'oauth_token_secret': 'foobar-secret',
Expand Down

0 comments on commit 66ceb79

Please sign in to comment.