Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests, good first task.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
Restricted Application added a comment.


  Thank you for tagging this task with #good_first_task 
<https://phabricator.wikimedia.org/tag/good_first_task/> for Wikimedia 
newcomers!
  
  Newcomers often may not be aware of things that may seem obvious to seasoned 
contributors, so please take a moment to reflect on how this task might look to 
somebody who has never contributed to Wikimedia projects.
  
  A #good_first_task <https://phabricator.wikimedia.org/tag/good_first_task/> 
is a self-contained, non-controversial task with a clear approach. It should be 
well-described with pointers to help a completely new contributor, for example 
it should clearly point to the codebase URL and provide clear steps to help a 
contributor get set up for success.  We've included some guidelines at 
https://phabricator.wikimedia.org/tag/good_first_task/ !
  
  Thank you for helping us drive new contributions to our projects <3

TASK DESCRIPTION
  **Description:**
  Pywikibot tests fail with UnknownSiteError for language code vro during 
test_pagelanglinks. This is because the language vro (Võro) — corresponding to 
the fiu-vro Wikipedia (https://fiu-vro.wikipedia.org) — is missing from the 
Wikipedia family definitions (wikipedia_family.py).
  
  **Error snippet**
  `pywikibot.exceptions.UnknownSiteError: Language 'vro' does not exist in 
family wikipedia`
  
  **Context:**
  
  The fiu-vro wiki is a valid Wikimedia project (Võro Wikipedia).
  
  The language code vro appears in langlinks returned by the API or Wikidata, 
but Pywikibot’s family files do not list it.
  
  This causes errors when Pywikibot attempts to create Site instances for vro.
  
  **Suggested solution:**
  
  Add fiu-vro or vro ->  fiu-vro to code_aliases in family.py.
  
  **Tests:**
  Ensure test test_pagelanglinks handles this gracefully: 
`tests.site_generators_tests.TestSiteGenerators.test_pagelanglinks`

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

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