Skip to content

Commit

Permalink
coverage: update coverage in deletionbot_tests.py
Browse files Browse the repository at this point in the history
Change-Id: I4e1efda5ad18734eb3e5ad6a36d3e50adfd0c4a6
  • Loading branch information
xqt committed Jan 3, 2025
1 parent 974f171 commit 457f3cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/deletionbot_tests.py
Original file line number Diff line number Diff line change
@@ -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.
#
Expand Down Expand Up @@ -42,7 +42,7 @@ def test_undelete_existing(self):
"""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',
Expand Down

0 comments on commit 457f3cb

Please sign in to comment.