2024-04-30 08:42:20 +02:00
|
|
|
from mastodon.model.status import Status
|
|
|
|
import json
|
|
|
|
|
|
|
|
|
|
|
|
def test_status_parse():
|
|
|
|
Status.model_validate(json_reader("./tests/resources/status.json"))
|
|
|
|
|
2024-05-01 20:41:01 +02:00
|
|
|
#def test_status_reblog_parse():
|
|
|
|
# Status.model_validate(json_reader("./tests/resources/status_reblog.json"))
|
|
|
|
|
|
|
|
|
2024-04-30 08:42:20 +02:00
|
|
|
def json_reader(path):
|
|
|
|
with open(path) as f:
|
|
|
|
return json.load(f)
|