Skip to content

Commit

Permalink
tries fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfgangFahl committed Oct 27, 2023
1 parent 2f9c1b5 commit 207ca70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ def testQueryCommandLine(self):
{"format":"xml", "expected":'''<?xml version="1.0" ?>'''},
{"format":"latex","expected":'''Theodore Roosevelt & Teddy'''},
{"format":"mediawiki", "expected":'''| [https://www.wikidata.org/wiki/Q33866 Q33866] || Theodore Roosevelt || Teddy'''},
{"format":"github","expected":'''| [Q33866](https://www.wikidata.org/wiki/Q33866) | Theodore Roosevelt | Teddy |'''}
{"format":"github","expected":'''| [Q33866](https://www.wikidata.org/wiki/Q33866) | Theodore Roosevelt | Teddy'''}
]:
resultFormat=testArg["format"]
expected=testArg["expected"]
args=["-d","-qn","US President Nicknames","-l","sparql","-f",resultFormat]
result=self.captureQueryMain(args)
if debug:
print(f"{resultFormat}:{result}")
self.assertTrue(expected in result)
self.assertTrue(expected in result,f"{expected}({resultFormat})")


def testQueryEndpoints(self):
Expand Down

0 comments on commit 207ca70

Please sign in to comment.