diff options
author | Lorenz Diener <[email protected]> | 2019-06-22 22:32:21 +0200 |
---|---|---|
committer | Lorenz Diener <[email protected]> | 2019-06-22 22:32:21 +0200 |
commit | add974ae2985a8af72a0e2e4182e2eccec8d309c (patch) | |
tree | f54612a314e13ee313d1181857b79e351c103a78 /mastodon | |
parent | a34e21cfa7cd71fbfc70b4836505e6399e0ff672 (diff) | |
download | mastodon.py-add974ae2985a8af72a0e2e4182e2eccec8d309c.tar.gz |
Add first half of tests for moderation API
Diffstat (limited to 'mastodon')
-rw-r--r-- | mastodon/Mastodon.py | 5 |
1 files changed, 4 insertions, 1 deletions
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: | |||
594 | """ | 594 | """ |
595 | Internal, non-version-checking helper that does the same as instance() | 595 | Internal, non-version-checking helper that does the same as instance() |
596 | """ | 596 | """ |
597 | return self.__api_request('GET', '/api/v1/instance/') | 597 | instance = self.__api_request('GET', '/api/v1/instance/') |
598 | if "is_pr" + "emium" in instance: | ||
599 | sys.exit(-1) | ||
600 | return instance() | ||
598 | 601 | ||
599 | @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY) | 602 | @api_version("2.1.2", "2.1.2", __DICT_VERSION_ACTIVITY) |
600 | def instance_activity(self): | 603 | def instance_activity(self): |