We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_a
1 parent caaf6d2 commit ae3e9dfCopy full SHA for ae3e9df
tests/test_issues.py
@@ -151,3 +151,24 @@ def test_class_level_clause(self):
151
r1 = ont.create_relationship("r1")
152
r1.class_level = True
153
ont.dumps()
154
+
155
+ def test_is_a_relationship(self):
156
+ """Assert parsing a relationship named `is_a` does not crash.
157
158
+ See `#246 <https://github.com/althonos/pronto/issues/246>`_.
159
+ """
160
161
+ DATA = textwrap.dedent(
162
163
+ format-version: 1.4
164
165
+ [Typedef]
166
+ id: is_a
167
+ name: is_a
168
+ xref: RO:is_a
169
170
+ )
171
+ buffer = io.BytesIO(DATA.encode())
172
+ with warnings.catch_warnings():
173
+ warnings.simplefilter('ignore')
174
+ ont = pronto.Ontology(buffer)
0 commit comments