-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add cmake-build-release to gitignore * add getExecutionTime, getCompilingTime, and getNumTuples to python api * Add tests --------- Co-authored-by: Chang Liu <liuc223@gmail.com>
- Loading branch information
Showing
6 changed files
with
88 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
def test_get_execution_time(establish_connection): | ||
conn, db = establish_connection | ||
result = conn.execute("MATCH (a:person) WHERE a.ID = 0 RETURN a") | ||
assert result.get_execution_time() > 0 | ||
result.close() | ||
|
||
|
||
def test_get_compiling_time(establish_connection): | ||
conn, db = establish_connection | ||
result = conn.execute("MATCH (a:person) WHERE a.ID = 0 RETURN a") | ||
assert result.get_compiling_time() > 0 | ||
result.close() | ||
|
||
|
||
def test_get_num_tuples(establish_connection): | ||
conn, db = establish_connection | ||
result = conn.execute("MATCH (a:person) WHERE a.ID = 0 RETURN a") | ||
assert result.get_num_tuples() == 1 | ||
result.close() |