Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tholzheim committed Mar 23, 2022
1 parent 092143f commit db372ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/test_SMWApi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
}}
Expand All @@ -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__":
Expand Down
2 changes: 1 addition & 1 deletion tests/test_WikiPush.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")


Expand Down

0 comments on commit db372ba

Please sign in to comment.