-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
77bf4e6
commit adec0ed
Showing
4 changed files
with
58 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
from typing import Any | ||
|
||
from feditest import nodedriver | ||
from feditest.nodedrivers.mastodon.mixin import MastodonApiMixin | ||
from feditest.protocols import Node, NodeDriver | ||
from feditest.protocols.activitypub import ActivityPubNode | ||
|
||
|
||
class MastodonManualNode(MastodonApiMixin, ActivityPubNode): | ||
... | ||
|
||
@nodedriver | ||
class MastodonManualNodeDriver(NodeDriver): | ||
""" | ||
Expects a manually-provisioned Mastodon node. | ||
""" | ||
|
||
def _provision_node(self, rolename: str, parameters: dict[str, Any]) -> Node: | ||
return MastodonManualNode(rolename, parameters, self) | ||
|
||
def _unprovision_node(self, node: Node) -> None: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters