Skip to content

Commit

Permalink
tests: re-enable generate_family_file_tests for wsbeta
Browse files Browse the repository at this point in the history
generate_family_file_tests.TestGenerateFamilyFile.test_attributes_after_run
passes; re-enable this test. Tests on musicbrainz wiki are no longer done.

Bug: T243669
Change-Id: I5950d5424c34838f26f62293576e09d5abe50dee
  • Loading branch information
xqt committed Jan 5, 2025
1 parent d917751 commit 710049a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/generate_family_file_tests.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Test generate_family_file script."""
#
# (C) Pywikibot team, 2018-2024
# (C) Pywikibot team, 2018-2025
#
# Distributed under the terms of the MIT license.
#
Expand Down Expand Up @@ -91,12 +91,10 @@ def test_attributes_after_run(self):
with self.subTest(test='Test whether default is loaded'):
self.assertIn(self.site.lang, gen.wikis)

# Subtest fails on musicbrainz (T130381) and wsbeta (T243669)
if self.site.family.name not in ('wsbeta', 'musicbrainz'):
with self.subTest(test='Test element counts'):
if self.site.lang not in gen.prefixes:
gen.prefixes.append(self.site.lang)
self.assertCountEqual(gen.prefixes, gen.wikis)
with self.subTest(test='Test element counts'):
if self.site.lang not in gen.prefixes:
gen.prefixes.append(self.site.lang)
self.assertCountEqual(gen.prefixes, gen.wikis)

# test creating Site from url
# only test Sites for downloaded wikis (T241413)
Expand Down

0 comments on commit 710049a

Please sign in to comment.