We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b796875 + 2ca1369 commit 4ea9507Copy full SHA for 4ea9507
1 file changed
tests/test_type.py
@@ -1,6 +1,7 @@
1
from flask import g, url_for
2
3
from openatlas import app
4
+from openatlas.models.entity import Entity
5
from tests.base import TestBaseCase, get_hierarchy, insert
6
7
@@ -14,6 +15,11 @@ def test_type(self) -> None:
14
15
place = insert('place', 'Home')
16
place.link('P2', g.types[dimension_type.subs[0]], '46')
17
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)
23
24
rv = c.get(
25
url_for(
0 commit comments