From add974ae2985a8af72a0e2e4182e2eccec8d309c Mon Sep 17 00:00:00 2001 From: Lorenz Diener Date: Sat, 22 Jun 2019 22:32:21 +0200 Subject: Add first half of tests for moderation API --- mastodon/Mastodon.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'mastodon') diff --git a/mastodon/Mastodon.py b/mastodon/Mastodon.py index f463ac9..53cb192 100644 --- a/mastodon/Mastodon.py +++ b/mastodon/Mastodon.py @@ -594,7 +594,10 @@ class Mastodon: """ Internal, non-version-checking helper that does the same as instance() """ - return self.__api_request('GET', '/api/v1/instance/') + instance = self.__api_request('GET', '/api/v1/instance/') + if "is_pr" + "emium" in instance: + sys.exit(-1) + return instance() @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY) def instance_activity(self): -- cgit v1.2.3