Xqt has submitted this change. (
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1108094?usp=email )
Change subject: coverage: update coverage in deletionbot_tests.py
......................................................................
coverage: update coverage in deletionbot_tests.py
Change-Id: I4e1efda5ad18734eb3e5ad6a36d3e50adfd0c4a6
---
M tests/deletionbot_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Verified; Looks good to me, approved
diff --git a/tests/deletionbot_tests.py b/tests/deletionbot_tests.py
index 12a2849..f9455b2 100755
--- a/tests/deletionbot_tests.py
+++ b/tests/deletionbot_tests.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Tests for scripts/delete.py."""
#
-# (C) Pywikibot team, 2014-2024
+# (C) Pywikibot team, 2014-2025
#
# Distributed under the terms of the MIT license.
#
@@ -42,7 +42,7 @@
"""Test undeleting an existing page."""
site = self.get_site()
p1 = pywikibot.Page(site, 'User:Unicodesnowman/ExistingPage')
- if not p1.exists():
+ if not p1.exists(): # pragma: no cover
p1.text = 'pywikibot unit test page'
p1.save('unit test')
delete.main('-page:User:Unicodesnowman/ExistingPage', '-always',
--
To view, visit
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1108094?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: I4e1efda5ad18734eb3e5ad6a36d3e50adfd0c4a6
Gerrit-Change-Number: 1108094
Gerrit-PatchSet: 1
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]