jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1199730?usp=email )

Change subject: Tests: show username if user cannot be logged in with 
RequireLoginMixin class
......................................................................

Tests: show username if user cannot be logged in with RequireLoginMixin class

Change-Id: Ib8561322c4daf2b2adf9f58b63e206e613275417
---
M tests/aspects.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Xqt: Looks good to me, approved
  jenkins-bot: Verified




diff --git a/tests/aspects.py b/tests/aspects.py
index c76cfca..34a6ea1 100644
--- a/tests/aspects.py
+++ b/tests/aspects.py
@@ -744,8 +744,8 @@
                 site.login()

             if not site.user():
-                raise unittest.SkipTest(
-                    f'{cls.__name__}: Not able to login to {site}')
+                raise unittest.SkipTest(f'{cls.__name__}: Not able to login '
+                                        f'{site.username()} to {site}')

     def setUp(self) -> None:
         """Set up the test case.

--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1199730?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Ib8561322c4daf2b2adf9f58b63e206e613275417
Gerrit-Change-Number: 1199730
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to