TestApp
faststream.broker.test.TestApp #
TestApp(app: FastStream, run_extra_options: Optional[Dict[str, SettingField]] = None)
A class to represent a test application.
METHOD | DESCRIPTION |
---|---|
__init__ | initializes the TestApp object |
__aenter__ | enters the asynchronous context and starts the FastStream application |
__aexit__ | exits the asynchronous context and stops the FastStream application |
Initialize a class instance.
PARAMETER | DESCRIPTION |
---|---|
app | An instance of the FastStream class. TYPE: |
run_extra_options | Optional dictionary of extra options for running the application. |
RETURNS | DESCRIPTION |
---|---|
None | None |