Skip to content

Commit

Permalink
example convenience decorator comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurin Schmidt committed Nov 14, 2024
1 parent 8c4f699 commit 78c55ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/_scaffold/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def download(filename):
# Define convenience decorators
# They can be used instead of @action and @action.uses
# They should NEVER BE MIXED with @action and @action.uses
# If you need to provide extra fixtures for a specific controller
# add them like this: @authenticated(uses=[extra_fixture])
# #######################################################
unauthenticated = ActionFactory(db, session, T, flash, auth)
authenticated = ActionFactory(db, session, T, flash, auth.user)
2 changes: 2 additions & 0 deletions apps/fadebook/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def download(filename):
# Define convenience decorators
# They can be used instead of @action and @action.uses
# They should NEVER BE MIXED with @action and @action.uses
# If you need to provide extra fixtures for a specific controller
# add them like this: @authenticated(uses=[extra_fixture])
# #######################################################
unauthenticated = ActionFactory(db, session, T, flash, auth)
authenticated = ActionFactory(db, session, T, flash, auth.user)
2 changes: 2 additions & 0 deletions apps/tagged_posts/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def download(filename):
# Define convenience decorators
# They can be used instead of @action and @action.uses
# They should NEVER BE MIXED with @action and @action.uses
# If you need to provide extra fixtures for a specific controller
# add them like this: @authenticated(uses=[extra_fixture])
# #######################################################
unauthenticated = ActionFactory(db, session, T, flash, auth)
authenticated = ActionFactory(db, session, T, flash, auth.user)

0 comments on commit 78c55ee

Please sign in to comment.