jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/910621 )
Change subject: [coverage] exclude input choices in guf from coverage ......................................................................
[coverage] exclude input choices in guf from coverage
Change-Id: I2d9642fb7649f5f7c56bb3c133c2334b5a0682cf --- M pywikibot/scripts/generate_user_files.py 1 file changed, 11 insertions(+), 2 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/pywikibot/scripts/generate_user_files.py b/pywikibot/scripts/generate_user_files.py index 93e32eb..fe5d618 100755 --- a/pywikibot/scripts/generate_user_files.py +++ b/pywikibot/scripts/generate_user_files.py @@ -313,7 +313,7 @@ select = pywikibot.input_choice( f'Do you want to select {variant} setting sections?', answers, default=default, force=force, automatic_quit=False) - if select == 'h': + if select == 'h': # pragma: no cover answers.pop(-1) pywikibot.info( f'The following {variant} setting sections are provided:') @@ -326,7 +326,7 @@ choice = {'a': 'all', 'n': 'none', 'y': 'h'}[select] # mapping for item in filter(skip, sections): answers = [('Yes', 'y'), ('No', 'n'), ('Help', 'h')] - while choice == 'h': + while choice == 'h': # pragma: no cover choice = pywikibot.input_choice( f'Do you want to add {item.head} section?', answers, default='n', force=force, automatic_quit=False)