-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add get_passport_config() to client.Admin
Tested-by: new test case in tests/test_passport.py
- Loading branch information
1 parent
89326e3
commit ca40d6f
Showing
2 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from .base import TestAdmin | ||
from .. import util | ||
|
||
|
||
class TestPassport(TestAdmin): | ||
def test_get_passport(self): | ||
""" Test get passport configuration | ||
""" | ||
response = self.client.get_passport_config() | ||
(uri, args) = response['uri'].split('?') | ||
self.assertEqual(response['method'], 'GET') | ||
self.assertEqual(uri, '/admin/v2/passport/config') | ||
self.assertEqual(util.params_to_dict(args), {'account_id': [self.client.account_id]}) |