Skip to content

Commit

Permalink
Fix unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
emfomy committed Apr 24, 2020
1 parent 05c354d commit 600a9c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/container/tree_parsed.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def test_get_relations_semantic(self):
(21, 22, 'aspect',),
}
rels_id_out = {
(rel.head.identifier, rel.tail.identifier, rel.relation)
(rel.head.identifier, rel.tail.identifier, rel.relation.data.role)
for rel in obj.get_relations(semantic=True)
}
self.assertEqual(rels_id_out, rels_id)
Expand All @@ -310,7 +310,7 @@ def test_get_relations_syntactic(self):
(21, 22, 'aspect',),
}
rels_id_out = {
(rel.head.identifier, rel.tail.identifier, rel.relation)
(rel.head.identifier, rel.tail.identifier, rel.relation.data.role)
for rel in obj.get_relations(semantic=False)
}
self.assertEqual(rels_id_out, rels_id)

0 comments on commit 600a9c1

Please sign in to comment.