Skip to content

Commit 3f4b293

Browse files
committed
added required_roles custom function test, closes #162
1 parent 8f7f4d4 commit 3f4b293

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

tests/e2e_custom_functions.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,3 +944,9 @@ def varargs_with_object_handles(x, *args: object):
944944
r3 = frame_equal(args[0], df)
945945
r4 = frame_equal(args[1], df)
946946
return r1 and r2 and r3 and r4
947+
948+
949+
@func(required_roles=["test"])
950+
def required_roles():
951+
# Has to return an error cell
952+
return True

tests/e2e_custom_functions.xlsx

135 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)