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

TASK DESCRIPTION
  **Steps to replicate the issue**:
  
  Modify FamilyTestGenerator in generate_family_file_tests that ii wiki is 
always used:
  
    def getapis(self):
        """Only load up to additional ten different wikis randomly."""
        save = self.langs
        self.langs = sample(save, min(len(save), 9))
        for k in save:
            if k['prefix'] == 'ii':
                self.langs.append(k)
        self.prefixes = [item['prefix'] for item in self.langs]
        super().getapis()
        self.langs = save
  
  **What happens?**:
  
  Test always fails:
  
      test_attributes_after_run 
(__main__.TestGenerateFamilyFiles.test_attributes_after_run) (test='Test 
element counts')
    Test FamilyFileGenerator attributes after run(). ... FAIL
     16.152s
    ======================================================================
    FAIL: test_attributes_after_run 
(__main__.TestGenerateFamilyFiles.test_attributes_after_run) (test='Test 
element counts')
    Test FamilyFileGenerator attributes after run().
    ----------------------------------------------------------------------
    Traceback (most recent call last):
      File "D:\pwb\GIT\core\tests\generate_family_file_tests.py", line 82, in 
test_attributes_after_run
        self.assertCountEqual(gen.prefixes, gen.wikis)
    AssertionError: Element counts were not equal:
    First has 1, Second has 0:  'ii'
    
    ----------------------------------------------------------------------
    Ran 1 test in 17.073s
    
    FAILED (failures=1)
  
  
https://integration.wikimedia.org/ci/job/pywikibot-core-tox-deeptest-py36-docker/2353/console

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

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

To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, PotsdamLamb, Jyoo1011, JohnsonLee01, 
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki, 
Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx, jayvdb, 
Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to