Skip to content

Commit 70e1da4

Browse files
committed
unit test performed
1 parent a37b084 commit 70e1da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_collection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
# Create an instance of Database
5-
db = FileXdb("testDb", "data/db")
5+
db = FileXdb("test_DB", "test_data/db")
66

77
# Create a Collection
88
student_info = db.collection("student_info")
@@ -36,7 +36,7 @@ def test_find():
3636

3737
assert student_info.find() # Returns all Documents.
3838
assert student_info.find(query=_query_2) # Returns all Documents matches the ``_query``.
39-
assert student_info.find(query=_query_2, limit=(1, 3)) # Returns doc[1] to doc[2] matches the ``_query``.
39+
assert student_info.find(query=_query_2, limit=(0, 30)) # Returns doc[1] to doc[2] matches the ``_query``.
4040
assert student_info.find(limit=(1, 10)) # Returns doc[1] to doc[9] of all Documents.
4141

4242

0 commit comments

Comments
 (0)