Skip to content

Commit 41d95ef

Browse files
committed
Adjust log to facilitate testing
1 parent e74002b commit 41d95ef

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_e2e.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,12 @@ def assertLoosely(self, response, assertion=None,
5858

5959
def assertCacheWorksForUser(
6060
self, result_from_wire, scope, username=None, data=None):
61+
logger.debug(
62+
"%s: cache = %s, id_token_claims = %s",
63+
self.id(),
64+
json.dumps(self.app.token_cache._cache, indent=4),
65+
json.dumps(result_from_wire.get("id_token_claims"), indent=4),
66+
)
6167
# You can filter by predefined username, or let end user to choose one
6268
accounts = self.app.get_accounts(username=username)
6369
self.assertNotEqual(0, len(accounts))
@@ -164,12 +170,6 @@ def _test_acquire_token_interactive(
164170
</ol></body></html>""".format(id=self.id(), username_uri=username_uri),
165171
data=data or {},
166172
)
167-
logger.debug(
168-
"%s: cache = %s, id_token_claims = %s",
169-
self.id(),
170-
json.dumps(self.app.token_cache._cache, indent=4),
171-
json.dumps(result.get("id_token_claims"), indent=4),
172-
)
173173
self.assertIn(
174174
"access_token", result,
175175
"{error}: {error_description}".format(

0 commit comments

Comments
 (0)