Commit 47686009 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mikaël Salson
Browse files

SampleSetList new anon permissions

since the anon permissions are no longer in the sample_set_list, we need
to adjust the test
parent b0dc4889
......@@ -45,6 +45,9 @@ class SamplesetlistModel(unittest.TestCase):
slist = SampleSetList(helper)
value = slist.result[0]
self.assertFalse(value.has_permission, "Anon was allowed, when it was not expected to be")
set_ids = set([ for s in slist.result])
anon_permissions = list(set([ for s in db(auth.vidjil_accesssible_query('anon', db.sample_set))]) & set_ids)
self.assertFalse(value.sample_set_id in anon_permissions, "Anon was allowed, when it was not expected to be")
Supports Markdown
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