python-dependency-injector/tests/unit/providers
Roman Mogylatov 3ca6dd9af1
Providers traversal (#385)
* Implement providers traversal in first precision

* Implement traversal for all providers

* Update traverse interface + add some tests

* Refactor tests

* Add tests for callable provider

* Add configuration tests

* Add Factory tests

* Add FactoryAggrefate tests

* Add .provides attribute to singleton providers

* Add singleton provider tests

* Add list and dict provider tests

* Add resource tests

* Add Container provider tests

* Add Selector provider tests

* Add ProvidedInstance provider tests

* Add AttributeGetter provider tests

* Add ItemGetter provider tests

* Add MethodCaller provider tests

* Refactor container interface

* Update resource provider string representation

* Add .initializer attribute to Resource provider

* Add docs and examples

* Remove not needed EOL in the tests

* Make cosmetic refactoring

* Ignore flake8 line width error in traverse example
2021-02-01 09:42:21 -05:00
..
__init__.py Make some style fixes in tests 2016-11-04 16:13:21 +02:00
test_async_py36.py Add extra tests for asynchronous injections 2021-01-21 11:42:22 -05:00
test_base_py2_py3.py 336 Dependency provider default (#382) 2021-01-29 13:49:40 -05:00
test_callables_py2_py3.py Provided attributes (#282) 2020-08-20 21:52:12 -04:00
test_configuration_py2_py3.py Add yaml tests skipping on Python 3.4 2021-01-25 17:32:22 -05:00
test_container_py2_py3.py 379 Fix a bug in `providers.Container` when it's declared not at class root level 2021-01-27 14:02:13 -05:00
test_coroutines_py35.py Async resources and injections (#352) 2021-01-10 19:26:15 -05:00
test_dict_py2_py3.py Add support of non-string keys for Dict provider 2020-11-20 17:30:42 -05:00
test_factories_py2_py3.py Async resources and injections (#352) 2021-01-10 19:26:15 -05:00
test_injections_py2_py3.py Remove assertEquals from tests 2018-11-08 22:55:01 +02:00
test_list_py2_py3.py Provided attributes (#282) 2020-08-20 21:52:12 -04:00
test_provided_instance_py2_py3.py Move "provided" attribute (#306) 2020-10-19 17:21:38 -04:00
test_resource_py35.py Providers traversal (#385) 2021-02-01 09:42:21 -05:00
test_selector_py2_py3.py Provided attributes (#282) 2020-08-20 21:52:12 -04:00
test_singletons_py2_py3.py Provided attributes (#282) 2020-08-20 21:52:12 -04:00
test_traversal_py3.py Providers traversal (#385) 2021-02-01 09:42:21 -05:00
test_types_py36.py Move generic types test to separate module 2020-09-13 20:38:23 -04:00
test_utils_py2_py3.py Coroutine provider (#206) 2018-10-18 19:39:19 +03:00