Add more test about coord

This commit is contained in:
wqy
2022-09-30 20:15:25 +08:00
parent d981b74485
commit 964e9af033

View File

@@ -104,6 +104,12 @@ class TestApi:
assert change_set.operations[0]['properties'] == ['demand']
assert get_junction(p, 'j0')['demand'] == 100.0
assert get_junction(p, 'j0')['coord']['x'] == 0.0
assert get_junction(p, 'j0')['coord']['y'] == 10.0
change_set = set_junction(p, 'j0', {'coord': {'x': 100.0, 'y': 200.0}})
assert get_junction(p, 'j0')['coord']['x'] == 100.0
assert get_junction(p, 'j0')['coord']['y'] == 200.0
# TODO: pattern
change_set = add_junction(p, "j1", 0.0, 10.0, 20.0)