jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/372778 )
Change subject: travis.yml: Print the length and type of config.authenticate values ......................................................................
travis.yml: Print the length and type of config.authenticate values
This is a temporary means to help us confirm that authenticate values are initially set with correct type and format in user-config.py (or not).
Bug: T173498 Change-Id: I7b6f057477ec5793c33e0e5d3bd02a2e0a677e8d --- M .travis.yml 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/.travis.yml b/.travis.yml index 1541421..c5a9928 100644 --- a/.travis.yml +++ b/.travis.yml @@ -90,6 +90,7 @@ fi ; fi - echo "authenticate['wiki.musicbrainz.org'] = ('NOTSPAM', 'NOTSPAM')" >> ~/.pywikibot/user-config.py ; + - python -c "from __future__ import print_function;from pywikibot import config as c; a=c.authenticate; [(print('authenticate_key:', i), print('authenticate_value_type:', type(a[i])), print('authenticate_value_length:', len(a[i]))) for i in a]" # T173498
- echo "max_retries = 2" >> ~/.pywikibot/user-config.py - echo "maximum_GET_length = 5000" >> ~/.pywikibot/user-config.py