summaryrefslogtreecommitdiff
path: root/src/scripts/pyolian/test_eolian.py
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-26 11:56:31 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-11-26 12:40:32 -0300
commitabaa90cfc20529f1507864e7b2d38ef69a16ded4 (patch)
treea00f268a15b6eb4e709b835773325547fe94c023 /src/scripts/pyolian/test_eolian.py
parent0acc840f1970d60b1c610a1d5b83e17abd49f17f (diff)
pyolian: Add a method to get the hierarchy of extensions
Summary: To be used by the test generator Depends on D10420 Test Plan: test in the diff Reviewers: DaveMDS, herb, segfaultxavi, felipealmeida Reviewed By: felipealmeida Subscribers: cedric, brunobelo, #reviewers, felipealmeida, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10421
Diffstat (limited to '')
-rwxr-xr-xsrc/scripts/pyolian/test_eolian.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py
index b6090c661e..133b279084 100755
--- a/src/scripts/pyolian/test_eolian.py
+++ b/src/scripts/pyolian/test_eolian.py
@@ -704,3 +704,11 @@ class TestEolianInherits(object):
704 def test_inherits_full(self, eolian_db): 704 def test_inherits_full(self, eolian_db):
705 cls = eolian_db.class_by_name_get('Efl.Ui.Widget') 705 cls = eolian_db.class_by_name_get('Efl.Ui.Widget')
706 assert 'Efl.Object' in cls.inherits_full 706 assert 'Efl.Object' in cls.inherits_full
707
708 def test_extensions_hierarchy(self, eolian_db):
709 cls = eolian_db.class_by_name_get('Efl.Ui.Widget')
710
711 # inherited extension
712 assert any(x.name == 'Efl.Gfx.Stack' for x in cls.extensions_hierarchy)
713 # direct extension
714 assert any(x.name == 'Efl.Access.Object' for x in cls.extensions_hierarchy)