Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-sgaron committed Apr 16, 2020
1 parent 96d30c3 commit 7f9e80e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ def datastore(datastore_connection, filestore):
ds = datastore_connection
try:
create_users(ds)
for _ in range(NUM_FILES):
# noinspection PyUnusedLocal
for _f in range(NUM_FILES):
f = random_model_obj(File)
if test_file is None:
test_file = f
ds.file.save(f.sha256, f)

filestore.put(f.sha256, f.sha256)

for _ in range(random.randint(1, 3)):
# noinspection PyUnusedLocal
for _r in range(random.randint(1, 3)):
r = random_model_obj(Result)
r.sha256 = f.sha256
file_res_list.append(r.build_key())
Expand Down

0 comments on commit 7f9e80e

Please sign in to comment.