Dvorapa added a comment.

  After last patch en:musicbrainz fails with the same issue as 
en:betawikisource.
  
    ______________ TestGenerateFamilyFiles.test_attributes_after_run 
_______________
    
    self = <tests.generate_family_files_tests.TestGenerateFamilyFiles 
testMethod=test_attributes_after_run>
    
        def test_attributes_after_run(self):
    
            """Test FamilyFileGenerator attributes after run()."""
    
            gen = self.generator_instance
    
            gen.run()
    
        
    
            with self.subTest(test='Test whether default is loaded'):
    
                self.assertIn(self.site.lang, gen.wikis)
    
        
    
            with self.subTest(test='Test element counts'):
    
                if self.site.lang not in gen.prefixes:
    
                    gen.prefixes += [self.site.lang]
    
    >           self.assertCountEqual(gen.prefixes, gen.wikis)
    
    E           AssertionError: Element counts were not equal:
    
    E           First has 1, Second has 0:  'ab'
    
    E           First has 1, Second has 0:  'lb'
    
    tests/generate_family_files_tests.py:74: AssertionError
    
    ------------------------------ Captured log call 
-------------------------------
    
    logging.py                 109 VERBOSE  https://wiki.musicbrainz.org 
redirected to https://wiki.musicbrainz.org/Main_Page
    
    logging.py                 109 VERBOSE  wgEnableApi is not enabled in HTML 
of https://wiki.musicbrainz.org/Main_Page
    
    logging.py                 109 VERBOSE  MW pre-1.17 detection failed: 
AttributeError("'NoneType' object has no attribute 'groups'",)
    
    logging.py                 109 VERBOSE  wgEnableApi is not enabled in HTML 
of https://acousticbrainz.org/
    
    logging.py                 109 VERBOSE  MW pre-1.17 detection failed: 
AttributeError("'NoneType' object has no attribute 'groups'",)
    
    logging.py                 109 VERBOSE  wgEnableApi is not enabled in HTML 
of https://listenbrainz.org/
    
    logging.py                 109 VERBOSE  MW pre-1.17 detection failed: 
AttributeError("'NoneType' object has no attribute 'groups'",)

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

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

To: Dvorapa
Cc: Aklapper, pywikibot-bugs-list, Dvorapa, Zkhalido, Viztor, Wenyi, Tbscho, 
MayS, Mdupont, JJMC89, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, 
Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to