Add more test about coord
This commit is contained in:
@@ -104,6 +104,12 @@ class TestApi:
|
|||||||
assert change_set.operations[0]['properties'] == ['demand']
|
assert change_set.operations[0]['properties'] == ['demand']
|
||||||
assert get_junction(p, 'j0')['demand'] == 100.0
|
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
|
# TODO: pattern
|
||||||
|
|
||||||
change_set = add_junction(p, "j1", 0.0, 10.0, 20.0)
|
change_set = add_junction(p, "j1", 0.0, 10.0, 20.0)
|
||||||
|
|||||||
Reference in New Issue
Block a user