Guard junction
This commit is contained in:
@@ -249,6 +249,8 @@ class TestApi:
|
||||
p = 'test_junction'
|
||||
self.enter(p)
|
||||
|
||||
assert get_junction(p, 'j0') == {}
|
||||
|
||||
add_junction(p, ChangeSet({'id': 'j0', 'x': 0.0, 'y': 10.0, 'elevation': 20.0}))
|
||||
j0 = get_junction(p, 'j0')
|
||||
assert j0['x'] == 0.0
|
||||
@@ -284,6 +286,8 @@ class TestApi:
|
||||
nodes = get_nodes(p)
|
||||
assert len(nodes) == 0
|
||||
|
||||
assert get_junction(p, 'j0') == {}
|
||||
|
||||
add_junction(p, ChangeSet({'id': 'j1', 'x': 0.0, 'y': 10.0, 'elevation': 20.0}))
|
||||
add_junction(p, ChangeSet({'id': 'j2', 'x': 0.0, 'y': 10.0, 'elevation': 20.0}))
|
||||
add_junction(p, ChangeSet({'id': 'j3', 'x': 0.0, 'y': 10.0, 'elevation': 20.0}))
|
||||
|
||||
Reference in New Issue
Block a user