Added the docstring documentation to the dummy user of the Flask-Login test case.

This commit is contained in:
依瑪貓 2022-11-24 23:48:09 +11:00
parent ccec1365bf
commit ff8ada129d

View File

@ -33,7 +33,13 @@ _PASSWORD: str = "Circle Of Life"
class User:
"""A dummy user."""
def __init__(self, username: str):
"""Constructs a dummy user.
:param username: The username.
"""
self.username: str = username
self.is_authenticated: bool = True
self.is_active: bool = True