Skip to content

Commit

Permalink
Better doc comment for User.context()
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Dec 9, 2021
1 parent 0d08261 commit abca230
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locust/user/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ def greenlet(self):

def context(self) -> Dict:
"""
Adds the returned value (a dict) to the context for :ref:`request event <request_context>`
Adds the returned value (a dict) to the context for :ref:`request event <request_context>`.
Override this in your User class to customize the context.
"""
return {}

Expand Down

0 comments on commit abca230

Please sign in to comment.