scitacean.testing.backend.config.SciCatUser#

class scitacean.testing.backend.config.SciCatUser(username, password, email, group)[source]#

A SciCat user.

Warning

Only ever use this for testing! This class does not have the usual protections against leaks of secrets used by the client.

Constructors

__init__(username, password, email, group)

Methods

dump()

Return a dict that can be serialized to functionalAccounts.json.

Attributes

credentials

Return login credentials for this user.

username

password

email

group

__init__(username, password, email, group)#
property credentials: dict[str, str]#

Return login credentials for this user.

User as

client = Client.from_credentials(url="...", **user.credentials)
dump()[source]#

Return a dict that can be serialized to functionalAccounts.json.

Return type:

dict[str, str | bool]