pymastodon/tests/test_model.py

11 lines
230 B
Python

from mastodon.model.status import Status
import json
def test_status_parse():
Status.model_validate(json_reader("./tests/resources/status.json"))
def json_reader(path):
with open(path) as f:
return json.load(f)