qubed/tests/test_conversions.py
2025-02-20 15:51:02 +00:00

16 lines
379 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