Skip to content

Commit

Permalink
Add filtering test to importer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tstirrat15 committed Nov 6, 2024
1 parent 18a4435 commit 015b524
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
definition user {}

definition resource {
relation viewer: user
permission view = viewer
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .user import user

definition resource {
relation viewer: user
permission view = viewer
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
definition user {}

// This shouldn't be present in the output
definition persona {}

// Nor should this
caveat only_on_tuesday(day_of_week string) {
day_of_week == 'tuesday'
}

0 comments on commit 015b524

Please sign in to comment.