tests.generate_family_file_tests module#
Test generate_family_file script.
- class tests.generate_family_file_tests.FamilyTestGenerator(url=None, name=None, dointerwiki=None, verify=None)[source]#
Bases:
FamilyFileGenerator
Family file test creator.
Parameters are optional. If not given the script asks for the values.
- Parameters:
url (str | None) – an url from where the family settings are loaded
name (str | None) – the family name without “_family.py” tail.
dointerwiki (str | None) – Predefined answer to add multiple site codes. Pass
Y
ory
for yes,S
ors
for strict which only includes site of the same domain (usually for Wikimedia sites),N
orn
for no andE
ore
if you want to edit the collection of sites.verify (str | None) – If a certificate verification failes, you may pass
Y
ory
to disable certificate validatonN
orn
to keep it enabled.
- class tests.generate_family_file_tests.TestGenerateFamilyFile(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,DefaultSiteTestCase
Test generate_family_file functionality.
- abstract_class = False#
- code = 'test'#
- family = 'wikipedia'#
- familyname = 'testgff'#
- net = True#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#