MCPcopy Create free account
hub / github.com/neuml/paperai / testRun

Method testRun

test/python/testquery.py:28–38  ·  view source on GitHub ↗

Test query execution

(self)

Source from the content-addressed store, hash-verified

26 self.assertEqual(Query.date(None), None)
27
28 def testRun(self):
29 """
30 Test query execution
31 """
32
33 # Execute query
34 with open(Utils.PATH + "/query.txt", "w", newline="\n", encoding="utf-8") as query:
35 with redirect_stdout(query):
36 Query.run("risk factors studied", 10, Utils.PATH)
37
38 self.assertEqual(Utils.linecount(Utils.PATH + "/query.txt"), 106)

Callers

nothing calls this directly

Calls 2

linecountMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected