From db372ba05c967e679ae54c0617581214913d11c9 Mon Sep 17 00:00:00 2001 From: tholzheim Date: Wed, 23 Mar 2022 14:55:17 +0100 Subject: [PATCH] Updated tests --- tests/test_SMWApi.py | 4 ++-- tests/test_WikiPush.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_SMWApi.py b/tests/test_SMWApi.py index 96178ee..1fe9ed3 100644 --- a/tests/test_SMWApi.py +++ b/tests/test_SMWApi.py @@ -517,7 +517,7 @@ def testIssue82(self): see https://github.com/WolfgangFahl/py-3rdparty-mediawiki/issues/82 ''' queries = { - "askWithBlankInStr":"""{{#ask: [[IsA::Event series]] + "askWithBlankInStr":"""{{#ask: [[IsA::EventSeries]] |mainlabel=Event series |format=table }} @@ -532,7 +532,7 @@ def testIssue82(self): smw = self.getSMWs('orclone')[1] for name, ask in queries.items(): result = self.getAskResult(smw, ask, limit=5) - self.assertTrue(len(result) == 5, name) + self.assertTrue(len(result) == 5, name + smw.site.host+smw.site.path) if __name__ == "__main__": diff --git a/tests/test_WikiPush.py b/tests/test_WikiPush.py index cb2bf40..606a47c 100644 --- a/tests/test_WikiPush.py +++ b/tests/test_WikiPush.py @@ -41,7 +41,7 @@ def testIssue66(self): wp = WikiPush("smwcopy") pageTitles = wp.query("[[Modification date::>=3000-01-01]]", queryDivision=10) wp.backup(pageTitles) - except Exception as e: + except Exception as e: self.fail(f"Empty query result should not lead to an error but {e} was thrown")