mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-12 13:03:39 +00:00
16 lines
407 B
Python
16 lines
407 B
Python
from ahriman.models.changes import Changes
|
|
|
|
|
|
def test_changes_from_json_view() -> None:
|
|
"""
|
|
must construct same object from json
|
|
"""
|
|
changes = Changes()
|
|
assert Changes.from_json(changes.view()) == changes
|
|
|
|
changes = Changes("sha")
|
|
assert Changes.from_json(changes.view()) == changes
|
|
|
|
changes = Changes("sha", "change")
|
|
assert Changes.from_json(changes.view()) == changes
|