jenkins-bot has submitted this change and it was merged.
Change subject: [FIX] DrySite: Define 'case' value ......................................................................
[FIX] DrySite: Define 'case' value
With bcde541f the case method in DrySite has been removed but some tests require that value. This reimplements it using the siteinfo.
Change-Id: Ie82c6ad20ebd41b6c60f12cd94f480975918f664 --- M tests/utils.py 1 file changed, 4 insertions(+), 3 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/utils.py b/tests/utils.py index 65c2901..8aeb071 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -191,11 +191,12 @@ self._paraminfo = DryParamInfo() self._siteinfo = DummySiteinfo({}) self._siteinfo._cache['lang'] = (code, True) + self._siteinfo._cache['case'] = ( + 'case-sensitive' if self.family.name == 'wiktionary' else + 'first-letter', True) self._namespaces = SelfCallDict( Namespace.builtin_namespaces( - case='case-sensitive' - if self.family.name == 'wiktionary' - else 'first-letter')) + case=self.siteinfo['case']))
def __repr__(self): """Override default so warnings and errors indicate test is dry."""