qubed/tests/test_conversions.py
2025-02-26 09:11:30 +00:00

19 lines
425 B
Python

from qubed import Qube
def test_json_round_trip():
u = Qube.from_dict(
{
"class=d1": {
"dataset=climate-dt/weather-dt": {
"generation=1/2/3/4": {},
},
"dataset=another-value": {
"generation=1/2/3": {},
},
}
}
)
json = u.to_json()
assert Qube.from_json(json) == u