Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, hubaishan, 
Aklapper.

TASK DESCRIPTION
  `py -3.13 -m pwb -site:wikisource:beta pwb pagegenerators_tests -v 
EventStreamsPageGeneratorTestCase` 
  never stops because the corresponding site is not found within the event 
stream. `wikisource:beta` is part of configured within the family file;
  
    """Family module for Wikisource."""
    from __future__ import annotations
    
    from pywikibot import family
    from pywikibot.tools import classproperty
    
    
    # The Wikimedia family that is known as Wikisource
    class Family(family.SubdomainFamily, family.WikimediaFamily):
    
        """Family class for Wikisource."""
    
        name = 'wikisource'
    
        closed_wikis = [
            # 
https://noc.wikimedia.org/conf/highlight.php?file=dblists/closed.dblist
            'ang', 'ht',
        ]
        removed_wikis = [
            # 
https://noc.wikimedia.org/conf/highlight.php?file=dblists/deleted.dblist
            'tokipona',
        ]
    
        codes = {
            'ar', 'as', 'az', 'ban', 'bcl', 'be', 'bg', 'bn', 'br', 'bs', 'ca',
            'cs', 'cy', 'da', 'de', 'el', 'en', 'eo', 'es', 'et', 'eu', 'fa', 
'fi',
            'fo', 'fr', 'gl', 'gu', 'he', 'hi', 'hr', 'hu', 'hy', 'id', 'is', 
'it',
            'ja', 'jv', 'ka', 'kn', 'ko', 'la', 'li', 'lij', 'lt', 'mad', 'min',
            'mk', 'ml', 'mr', 'ms', 'mul', 'my', 'nap', 'nl', 'no', 'or', 'pa',
            'pl', 'pms', 'pt', 'ro', 'ru', 'sa', 'sah', 'sk', 'sl', 'sr', 'su',
            'sv', 'ta', 'tcy', 'te', 'th', 'tl', 'tr', 'uk', 'ur', 'vec', 'vi',
            'wa', 'yi', 'zh', 'zh-min-nan',
        }
    
        # Sites we want to edit but not count as real languages
        test_codes = ['beta']
  
  Whereas
  `py -3.13 -m pwb -site:wsbeta:en pwb pagegenerators_tests -v 
EventStreamsPageGeneratorTestCase`
  works if the family file was created with `generate_family_file` script as:
  
    """
    This family file was auto-generated by generate_family_file.py script.
    
    Configuration parameters:
      url = http://en.wikisource.beta.wmcloud.org/
      name = wsbeta
    
    Please do not commit this to the Git repository!
    """
    from pywikibot import family
    
    
    class Family(family.Family):  # noqa: D101
    
        name = 'wsbeta'
        langs = {
            'en': 'en.wikisource.beta.wmcloud.org',
        }
    
        def scriptpath(self, code):
            return {
                'en': '/w',
            }[code]
    
        def protocol(self, code):
            return {
                'en': 'https',
            }[code]

TASK DETAIL
  https://phabricator.wikimedia.org/T426540

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to