Skip to content

Commit

Permalink
added required_roles custom function test, closes #162
Browse files Browse the repository at this point in the history
  • Loading branch information
fzumstein committed Oct 29, 2024
1 parent 8f7f4d4 commit 3f4b293
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/e2e_custom_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,3 +944,9 @@ def varargs_with_object_handles(x, *args: object):
r3 = frame_equal(args[0], df)
r4 = frame_equal(args[1], df)
return r1 and r2 and r3 and r4


@func(required_roles=["test"])
def required_roles():
# Has to return an error cell
return True
Binary file modified tests/e2e_custom_functions.xlsx
Binary file not shown.

0 comments on commit 3f4b293

Please sign in to comment.