Skip to content

Commit 4ea9507

Browse files
Merge branch 'develop' into feature/welterbe_restructure
2 parents b796875 + 2ca1369 commit 4ea9507

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/test_type.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from flask import g, url_for
22

33
from openatlas import app
4+
from openatlas.models.entity import Entity
45
from tests.base import TestBaseCase, get_hierarchy, insert
56

67

@@ -14,6 +15,11 @@ def test_type(self) -> None:
1415
place = insert('place', 'Home')
1516
place.link('P2', g.types[dimension_type.subs[0]], '46')
1617
location = place.get_linked_entity_safe('P53')
18+
new_type = insert('type', 'Some sub place type')
19+
new_type.link(
20+
'P127',
21+
Entity.get_by_id(get_hierarchy('Place').subs[0]))
22+
place.link('P2', new_type)
1723

1824
rv = c.get(
1925
url_for(

0 commit comments

Comments
 (0)