Xqt has submitted this change. ( 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1345947?usp=email )

Change subject: tests: Run TestSiteObject.test_constructors only for 
WikimediaFamily
......................................................................

tests: Run TestSiteObject.test_constructors only for WikimediaFamily

Bug: T439521
Change-Id: I8d7611cd584cee53e52b3a82d0fab9f42294b83b
---
M tests/site_tests.py
1 file changed, 3 insertions(+), 3 deletions(-)

Approvals:
  Xqt: Verified; Looks good to me, approved




diff --git a/tests/site_tests.py b/tests/site_tests.py
index 89ce296..9cb2d17 100755
--- a/tests/site_tests.py
+++ b/tests/site_tests.py
@@ -79,9 +79,9 @@

         site = (
             self.site
-            if not isinstance(self.site.family,
-                              pywikibot.family.BetaSubdomainFamily)
-            and self.site.code != 'beta'  # exclude Beta Cluster sites
+            # Beta projects use BetaSubdomainFamily instead of WikimediaFamily
+            if isinstance(self.site.family, pywikibot.family.WikimediaFamily)
+            and self.site.code != 'beta'  # Exclude the remaining Beta sites
             else None
         )


--
To view, visit 
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/1345947?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: I8d7611cd584cee53e52b3a82d0fab9f42294b83b
Gerrit-Change-Number: 1345947
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]

Reply via email to