makes censor characters consistent

This commit is contained in:
adamscmRH
2018-04-10 10:52:59 -04:00
parent ea900b6f95
commit 8529f2b5eb
4 changed files with 13 additions and 12 deletions

View File

@@ -19,3 +19,4 @@ PRIVILEGE_ESCALATION_METHODS = [
ANSI_SGR_PATTERN = re.compile(r'\x1b\[[0-9;]*m')
CAN_CANCEL = ('new', 'pending', 'waiting', 'running')
ACTIVE_STATES = CAN_CANCEL
TOKEN_CENSOR = '************'

View File

@@ -115,7 +115,7 @@ def test_oauth_token_create(oauth_application, get, post, admin):
)
assert response.data['summary_fields']['tokens']['count'] == 1
assert response.data['summary_fields']['tokens']['results'][0] == {
'id': token.pk, 'scope': token.scope, 'token': '**************'
'id': token.pk, 'scope': token.scope, 'token': '************'
}