Commit c4e2d199 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Make sure all_files is working

parent 0c1393b4
Pipeline #13886 passed with stages
in 11 minutes and 29 seconds
...@@ -17,6 +17,7 @@ def assert_nfiles(files, total, nbonafide, nattack): ...@@ -17,6 +17,7 @@ def assert_nfiles(files, total, nbonafide, nattack):
def test_database(): def test_database():
db = Database(protocol='Protocol_1') db = Database(protocol='Protocol_1')
assert len(db.all_files())
assert_nfiles(db.objects(), 1200 + 900 + 600, assert_nfiles(db.objects(), 1200 + 900 + 600,
240 + 180 + 120 + 480, 960 + 720) 240 + 180 + 120 + 480, 960 + 720)
assert_nfiles(db.objects(groups='world'), 1200, 240, 960) assert_nfiles(db.objects(groups='world'), 1200, 240, 960)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment