jenkins-bot has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/667322 )

Change subject: [tests] simplify archivebot_tests.py
......................................................................

[tests] simplify archivebot_tests.py

Change-Id: Idf5f2a70d28f20fa69c0c99f7800f63c1514ab61
---
M tests/archivebot_tests.py
1 file changed, 2 insertions(+), 6 deletions(-)

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



diff --git a/tests/archivebot_tests.py b/tests/archivebot_tests.py
index 48d65a8..15b876c 100644
--- a/tests/archivebot_tests.py
+++ b/tests/archivebot_tests.py
@@ -68,8 +68,7 @@
         site = self.get_site('frwikt')
         self.assertEqual(
             archivebot.str2localized_duration(site, '10d'), '10 jours')
-        self.assertEqual(
-            archivebot.str2localized_duration(site, '1y'), '1 an')
+        self.assertEqual(archivebot.str2localized_duration(site, '1y'), '1 an')

     def test_str2localized_duration_Japanese(self):
         """Test Japanese localizations of duration."""
@@ -145,10 +144,7 @@
     def test_archivebot(self, code=None):
         """Test archivebot for one site."""
         site = self.get_site(code)
-        if code != 'de':  # bug T69663
-            page = pywikibot.Page(site, 'user talk:xqt')
-        else:
-            page = pywikibot.Page(site, 'user talk:ladsgroup')
+        page = pywikibot.Page(site, 'user talk:xqt')
         talk = archivebot.DiscussionPage(page, None)
         self.assertIsInstance(talk.archives, dict)
         self.assertIsInstance(talk.archived_threads, int)

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

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: Idf5f2a70d28f20fa69c0c99f7800f63c1514ab61
Gerrit-Change-Number: 667322
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-commits

Reply via email to