mirror of
https://github.com/pachli/pachli-android.git
synced 2025-02-01 09:57:16 +01:00
9b99a78d1f
Tests that rely on stubbing the MastodonAPI may have incorrect behaviour if some of the API methods called by the system-under-test are not stubbed. This can be difficult to track down. Make this easier by adding a default answer for the MastodonAPI used in tests. Any un-stubbed methods will throw an `AssertionError` with enough information to identify the method that should be stubbed and where it was called from.