diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-06-20 19:27:21 -0300 |
---|---|---|
committer | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2019-10-24 21:16:23 -0300 |
commit | 79e6d4e4fbe82d02cb92e547c41afe133d6b5776 (patch) | |
tree | 5c27f0fdefe31113378e580d5ec5f5d5057c1b8a | |
parent | 1adb7658790a705e19d3d4350800eb6269a7a612 (diff) | |
download | efl-79e6d4e4fbe82d02cb92e547c41afe133d6b5776.tar.gz |
pyolian: full_inherit must recurse parent too
-rw-r--r-- | src/scripts/pyolian/eolian.py | 1 | ||||
-rwxr-xr-x | src/scripts/pyolian/test_eolian.py | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/scripts/pyolian/eolian.py b/src/scripts/pyolian/eolian.py index 9ab6abd01e..31f4f06f44 100644 --- a/src/scripts/pyolian/eolian.py +++ b/src/scripts/pyolian/eolian.py @@ -739,6 +739,7 @@ class Class(Object): def do_class_recursive(cls): if cls.parent: li.append(cls.parent) + do_class_recursive(cls.parent) for other in cls.extensions: if other not in li: li.append(other) diff --git a/src/scripts/pyolian/test_eolian.py b/src/scripts/pyolian/test_eolian.py index 4aa4588640..b6090c661e 100755 --- a/src/scripts/pyolian/test_eolian.py +++ b/src/scripts/pyolian/test_eolian.py @@ -699,3 +699,8 @@ class TestEolianExpression(object): # exp.binary_operator # TODO find a better test (only works for BINARY expr) # exp.binary_lhs # TODO find a better test (only works for BINARY expr) # exp.binary_rhs # TODO find a better test (only works for BINARY expr) + +class TestEolianInherits(object): + def test_inherits_full(self, eolian_db): + cls = eolian_db.class_by_name_get('Efl.Ui.Widget') + assert 'Efl.Object' in cls.inherits_full |