Configuration Management for Testing

This class implements the configuration API, but in a very minimal way specifically for unit testing.

class firmware.config_mock.ConfigMock

Bases: ConfigBase

This class implements the configuration management API, specifically for unit testing workflows. This class utilizes defaults and has no actual provisioning functionality.

establish_config(screen: ScreenBase | None = None) None

In this mock class, this function does nothing.

Parameters:

screen – Not used for this mock class

Returns:

Nothing

github_token() str

Returns the default GitHub token

Returns:

A string token

wifi_networks() dict

Returns the default Wi-Fi network information

Returns:

A dict of network information, with keys as SSID and values as PW.