fediverse-devnet / feditest

A testing framework for distributed, heterogeneous systems communicating with complex protocols, such as the Fediverse
https://feditest.org/
MIT License
31 stars 6 forks source link

test_mastodon_node.py methods #326

Open jernst opened 3 weeks ago

jernst commented 3 weeks ago

There are a few methods used in test_mastodon_node.py that I can't find definitions for. E.g. node.delete_follows().

That node is supposedly a MastodonManualNode, which was eliminated in favor of NodeWithMastodonAPI and simply MastodonNode -- but they don't have those methods either and I don't remember that they ever did?

steve-bate commented 3 weeks ago

There are a few methods used in test_mastodon_node.py that I can't find definitions for. E.g. node.delete_follows().

That node is supposedly a MastodonManualNode, which was eliminated in favor of NodeWithMastodonAPI and simply MastodonNode -- but they don't have those methods either and I don't remember that they ever did?

Yes, they were previously there to help with test teardown so that servers didn't need to be re-provisioned for each test run.

Those methods are straightforward calls into the mastodon.py API. They can be separate test utility methods if you don't want them on the node.