funfedi_connect ¶
ApplicationPoster
module-attribute
¶
ApplicationPoster = Callable[
[ClientSession, str], Awaitable[None]
]
Describes how to post a message
ApplicationConfiguration ¶
Configuration of an application to run tests with
Source code in funfedi_connect/types/__init__.py
build_event_parsing
abstractmethod
async
¶
build_event_parsing(
session: ClientSession,
) -> ParsingTestApplicationConfiguration
build_object_parsing
abstractmethod
async
¶
build_object_parsing(
session: ClientSession,
) -> ParsingTestApplicationConfiguration
build_poster
abstractmethod
async
¶
build_poster(session: ClientSession) -> ApplicationPoster
Attachments ¶
Bases: StrEnum
Attachments added through allure.attach
Source code in funfedi_connect/types/__init__.py
ImplementedFeature ¶
Bases: StrEnum
Available implemented features
Source code in funfedi_connect/types/feature.py
ParsingTestApplicationConfiguration
dataclass
¶
Configuration for testing activity parsing by retrieving the parsed object by its id
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
actor_id
|
str
|
|
required |
application_name
|
str
|
|
required |
base_object_getter
|
Callable[list, Awaitable[dict | None]]
|
|
required |
poll_number
|
int
|
|
5
|
wait_time
|
float
|
|
1
|
Source code in funfedi_connect/types/parsing.py
object_getter
async
¶
object_getter(
session: ClientSession, object_id: str
) -> dict | None
Returns the parsing result or not if the result could not be retrieved, e.g. due to a parsing failure. Polling is used up to poll_number with wait_time seconds in between.
Source code in funfedi_connect/types/parsing.py
application_for_name ¶
application_for_name(name: str) -> ApplicationConfiguration
For a given name returns the corresponding application configuration