Core: refactoring contexts with more logical responsibilities, stopping to rely on kargs ordering for compat with python3.5

This commit is contained in:
Romain Dorgueil
2017-11-12 14:22:29 +01:00
parent 739a64d8f4
commit c87775f090
17 changed files with 325 additions and 252 deletions

View File

@ -58,7 +58,7 @@ def test_define_with_decorator():
Concrete = MethodBasedConfigurable(my_handler)
assert callable(Concrete.handler)
assert Concrete.handler == my_handler
assert Concrete.handler.__func__ == my_handler
with inspect_node(Concrete) as ci:
assert ci.type == MethodBasedConfigurable