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 (Optional[str]) – an url from where the family settings are loaded
name (Optional[str]) – the family name without “_family.py” tail.
dointerwiki (Optional[str]) – Predefined answer to add multiple site codes. Pass
Y
ory
for yesN
orn
for no andE
ore
if you want to edit the collection of sites.verify (Optional[str]) – 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.TestGenerateFamilyFiles(*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'}}#