Skip to content

Commit

Permalink
Merge "tests: re-enable generate_family_file_tests for wsbeta"
Browse files Browse the repository at this point in the history
  • Loading branch information
jenkins-bot authored and Gerrit Code Review committed Jan 5, 2025
2 parents 20cd1df + 710049a commit 489edbc
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 489edbc

Please sign in to comment.