File: test_reports.py

package info (click to toggle)
python-mastodon 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,836 kB
  • sloc: python: 9,438; makefile: 206; sql: 98; sh: 27
file content (8 lines) | stat: -rw-r--r-- 195 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
import pytest

@pytest.mark.vcr()
def test_report(api, status):
    user = api.account_verify_credentials().id
    report = api.report(user, status, "makes the bad post")
    assert(report)