diff options
Diffstat (limited to 'tests/test_filters.py')
-rw-r--r-- | tests/test_filters.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/test_filters.py b/tests/test_filters.py index dc39ddb..631cfd1 100644 --- a/tests/test_filters.py +++ b/tests/test_filters.py | |||
@@ -31,7 +31,14 @@ def test_filter_create(api): | |||
31 | assert(keyword_filter == keyword_filter_2) | 31 | assert(keyword_filter == keyword_filter_2) |
32 | finally: | 32 | finally: |
33 | api.filter_delete(keyword_filter) | 33 | api.filter_delete(keyword_filter) |
34 | 34 | ||
35 | @pytest.mark.vcr() | ||
36 | def test_filter_update(api): | ||
37 | keyword_filter = api.filter_create("anime", ['notifications'], irreversible = False, whole_word = True, expires_in = None) | ||
38 | keyword_filter_2 = api.filter_update(keyword_filter, phrase = "japanimation") | ||
39 | keyword_filter = api.filter(keyword_filter.id) | ||
40 | assert(keyword_filter.phrase == "japanimation") | ||
41 | |||
35 | @pytest.mark.vcr() | 42 | @pytest.mark.vcr() |
36 | def test_filter_serverside(api, api2): | 43 | def test_filter_serverside(api, api2): |
37 | api.account_follow(api2.account_verify_credentials()) | 44 | api.account_follow(api2.account_verify_credentials()) |