Roman Mogylatov
56c39554e7
Migrate ext.aiohttp tests
2021-10-15 10:09:33 -04:00
Roman Mogylatov
602d9336e1
Migrate container class custom string cls as atrribute name tests
2021-10-14 20:10:53 -04:00
Roman Mogylatov
c437610f7f
Migrate container cls tests
2021-10-14 20:06:57 -04:00
Roman Mogylatov
c3db0a43fa
Fix py2 container tests
2021-10-14 19:36:48 -04:00
Roman Mogylatov
f7b3d2afe4
Migrate container async resource tests
2021-10-14 19:33:46 -04:00
Roman Mogylatov
f62015a083
Migrate container custom string attribute name tests
2021-10-14 19:26:51 -04:00
Roman Mogylatov
c48e150912
Migrate container instance tests
2021-10-14 19:20:09 -04:00
Roman Mogylatov
f7b69e4418
Migrate container self tests
2021-10-14 18:56:12 -04:00
Roman Mogylatov
2580fa888d
Refactor container tests
2021-10-14 18:42:59 -04:00
Roman Mogylatov
fc61b93603
Migrate container tests
2021-10-14 16:27:15 -04:00
Roman Mogylatov
e3a6ee973c
Update sample imports
2021-10-14 16:19:13 -04:00
Roman Mogylatov
eb3a0c9839
Rename schema samples
2021-10-14 15:56:37 -04:00
Roman Mogylatov
4d9ba7b5ca
Migrate container.from_schema() integration tests
2021-10-14 15:54:16 -04:00
Roman Mogylatov
5c611ca011
Refactor container.from_schema() API tests
2021-10-13 22:04:16 -04:00
Roman Mogylatov
7c8cbdcfd9
Migrate misc wiring tests
2021-10-13 19:25:59 -04:00
Roman Mogylatov
a7450605b5
Update tests structure
2021-10-13 19:05:15 -04:00
Roman Mogylatov
835406da65
Migrate misc wiring tests
2021-10-13 19:04:05 -04:00
Roman Mogylatov
14449c4538
Migrate wiring config tests
2021-10-13 18:55:04 -04:00
Roman Mogylatov
150432032a
Migrate wiring string module and package names tests
2021-10-13 18:33:19 -04:00
Roman Mogylatov
3f682a9ede
Migrate main wiring tests
2021-10-13 16:43:02 -04:00
Roman Mogylatov
5e59e8d729
Migrate wiring async injection tests
2021-10-13 13:17:54 -04:00
Roman Mogylatov
926680d0f9
Move wiring autoloader tests
2021-10-13 12:42:00 -04:00
Roman Mogylatov
c525dda91a
Rename flask and fastapi wiring test files
2021-10-13 12:29:15 -04:00
Roman Mogylatov
ea37ad9dca
Migrate FastAPI and Flask wiring tests
2021-10-12 22:04:38 -04:00
Roman Mogylatov
af286548b3
Migrate common tests to pytest
2021-10-12 21:55:05 -04:00
Roman Mogylatov
c255f23f70
Rename pytest-py34-py35.ini -> pytest-py35.ini
2021-10-12 12:20:00 -04:00
Roman Mogylatov
23c145124f
Add pytest configs
2021-10-12 12:18:33 -04:00
Roman Mogylatov
94359ea43d
Update aiohttp ext test
2021-10-12 12:17:23 -04:00
Roman Mogylatov
4cc4ca9188
Drop Python 3.4 support ( #518 )
...
* Update gitignore
* Drop Python 3.4 support
* Update change log
* Fix typo in changelog
2021-10-12 12:16:49 -04:00
Roman Mogylatov
284dee6e58
Add with support for container.override_providers() ( #517 )
...
* Add implementation, tests, and typing stub
* Update documentation
* Update changelog
2021-10-06 21:36:41 -04:00
Roman Mogylatov
73a43e6191
Wiring config ( #516 )
...
* Implement POC
* Implement concept with WiringConfiguration object
* Update changelog
* Add docs
* Update changelog
2021-10-03 20:35:48 -04:00
Roman Mogylatov
8ade2b7839
Update quotes in tests
2021-09-30 20:09:42 -04:00
Roman Mogylatov
0b1e214135
Fix flast wiring test
2021-09-30 19:32:18 -04:00
Roman Mogylatov
7d160cb4a5
Wiring with string module names ( #515 )
...
* Update main example
* Updating wiring module
* Update wiring test case name
* Implement string imports for wiring
* Update example
* Refactor implementation
* Update front example
* Fix a typo in README
* Update wiring docs
* Update single container example
* Update multiple containers example
* Update quotes in multiple containers example
* Update quotes in single container example
* Update decoupled-packages example
* Update single and multiple containers example
* Update quotes
* Update fastapi+redis example
* Update resource docs
* Update quotes in CLI tutorial
* Update CLI application (movie lister) tutorial
* Update monitoring daemon example
* Update python version in asyncio daemon example
* Update asyncio daemon tutorial
* Update quotes in wiring docs
* Update wiring docs
2021-09-30 15:03:19 -04:00
Roman Mogylatov
4733aad44e
Fix provide issue ( #514 )
2021-09-25 15:36:48 -04:00
Roman Mogylatov
14d8ed909b
FactoryAggregate - non string keys ( #496 )
...
* Improve FactoryAggregate typing stub
* Add implementation, typing stubs, and tests
* Update changelog
* Fix deepcopying
* Add example
* Update docs
* Fix errors formatting for pypy3
2021-08-25 10:20:45 -04:00
Thiago Hiromi
b4df3dd2c9
Fix type annotations for .provides ( #491 )
...
* Fix type annotations for .provides
* Fix type hinting for .provides
as @rmk135 suggested
2021-08-23 21:24:36 -04:00
Roman Mogylatov
36bfd2ed58
Improve resource subclasses typing and make shutdown definition optional ( #492 )
...
* Improve resource subclasses typing and make shutdown definition optional
* Update mypy tests
2021-08-23 20:54:17 -04:00
Roman Mogylatov
83c2af0e7e
Fix resource subclass abc tests on Python 3.7
2021-08-16 18:27:42 -04:00
Roman Mogylatov
1163ac59d4
Return ABCMeta class for resource classes and add tests for abc
2021-08-16 18:19:40 -04:00
Roman Mogylatov
4286013ca0
Remove generic meta class from resource and async resource classes ( #490 )
...
* Remove generic meta class from resource and async resource classes
* Add link to the issue into the tests
* Update changelog
2021-08-16 10:05:50 -04:00
Roman Mogylatov
c4639e555e
Add typing fix for container.override_providers()
2021-08-11 21:24:34 -04:00
Roman Mogylatov
7b19fa0964
477 Containers @copy fix and refactoring ( #485 )
...
* Rename local variables
* Make code layout enhancements
* Add fix and tests
* Add more refactoring
* Update changelog
2021-08-11 21:18:37 -04:00
Roman Mogylatov
7bdcc33eda
Update wiring to support modules provided as packages
2021-08-06 15:56:24 -04:00
Roman Mogylatov
384117db9c
Update declarative container to support custom string types
2021-08-05 17:01:53 -04:00
Roman Mogylatov
06f9855140
Update types and add tests ( #480 )
2021-08-05 16:52:08 -04:00
Roman Mogylatov
aa251a44ba
Fix reverse shutdown order bug in container.shutdown_resources()
2021-07-24 16:32:44 -04:00
Roman Mogylatov
3d1bb5d7b3
432 resource shutdown order ( #473 )
...
* Add PoC
* Add tests for init and shutdown ordering
* Add circular dependencies breaker tests
* Refactoring and sync + async test
* Update changelog
2021-07-20 18:46:44 -04:00
Roman Mogylatov
ef049daae5
463 Config environment variables interpolation required and nones ( #467 )
...
* Make prototype with enterpolation before parsing
* Add test for option.from_yaml() with missing env not required
* Make some cosmetic changes to _resolve_config_env_markers()
* Add test for option.from_ini() missing envs not required
* Skip schema test cause it requires internet connection
* Add tests for .from_yaml() for config and config option
* Add tests for .from_ini() for config and config option
* Add example for os.environ.setdefault() and envs interpolation
* Add/update docs on environment variables interpolation
* Update changelog
2021-06-24 16:00:36 +03:00
Roman Mogylatov
dbbf5fdcf1
462 Config.from_value() ( #465 )
...
* Implement .from_value() method for config provider
* Add tests for config.from_value() method
* Add example for config.from_value()
* Add docs
* Update changelog
2021-06-13 22:05:29 -04:00