mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-22 01:26:51 +03:00
Update year 2021 -> 2022
This commit is contained in:
parent
4666a15092
commit
450407bf7a
|
@ -52,7 +52,7 @@ master_doc = "index"
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = "Dependency Injector"
|
project = "Dependency Injector"
|
||||||
copyright = "2021, Roman Mogylatov"
|
copyright = "2022, Roman Mogylatov"
|
||||||
author = "Roman Mogylatov"
|
author = "Roman Mogylatov"
|
||||||
|
|
||||||
# The version info for the project you"re documenting, acts as replacement for
|
# The version info for the project you"re documenting, acts as replacement for
|
||||||
|
|
|
@ -24,31 +24,31 @@ The output should be something like:
|
||||||
|
|
||||||
.. code-block::
|
.. code-block::
|
||||||
|
|
||||||
redis_1 | 1:C 04 Jan 2021 02:42:14.115 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
|
redis_1 | 1:C 04 Jan 2022 02:42:14.115 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
|
||||||
redis_1 | 1:C 04 Jan 2021 02:42:14.115 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
|
redis_1 | 1:C 04 Jan 2022 02:42:14.115 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
|
||||||
redis_1 | 1:C 04 Jan 2021 02:42:14.115 # Configuration loaded
|
redis_1 | 1:C 04 Jan 2022 02:42:14.115 # Configuration loaded
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.116 * Running mode=standalone, port=6379.
|
redis_1 | 1:M 04 Jan 2022 02:42:14.116 * Running mode=standalone, port=6379.
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.116 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
|
redis_1 | 1:M 04 Jan 2022 02:42:14.116 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.116 # Server initialized
|
redis_1 | 1:M 04 Jan 2022 02:42:14.116 # Server initialized
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.117 * Loading RDB produced by version 6.0.9
|
redis_1 | 1:M 04 Jan 2022 02:42:14.117 * Loading RDB produced by version 6.0.9
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.117 * RDB age 1 seconds
|
redis_1 | 1:M 04 Jan 2022 02:42:14.117 * RDB age 1 seconds
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.117 * RDB memory usage when created 0.77 Mb
|
redis_1 | 1:M 04 Jan 2022 02:42:14.117 * RDB memory usage when created 0.77 Mb
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.117 * DB loaded from disk: 0.000 seconds
|
redis_1 | 1:M 04 Jan 2022 02:42:14.117 * DB loaded from disk: 0.000 seconds
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:14.117 * Ready to accept connections
|
redis_1 | 1:M 04 Jan 2022 02:42:14.117 * Ready to accept connections
|
||||||
redis_1 | 1:signal-handler (1609728137) Received SIGTERM scheduling shutdown...
|
redis_1 | 1:signal-handler (1609728137) Received SIGTERM scheduling shutdown...
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:17.984 # User requested shutdown...
|
redis_1 | 1:M 04 Jan 2022 02:42:17.984 # User requested shutdown...
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:17.984 # Redis is now ready to exit, bye bye...
|
redis_1 | 1:M 04 Jan 2022 02:42:17.984 # Redis is now ready to exit, bye bye...
|
||||||
redis_1 | 1:C 04 Jan 2021 02:42:22.035 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
|
redis_1 | 1:C 04 Jan 2022 02:42:22.035 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
|
||||||
redis_1 | 1:C 04 Jan 2021 02:42:22.035 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
|
redis_1 | 1:C 04 Jan 2022 02:42:22.035 # Redis version=6.0.9, bits=64, commit=00000000, modified=0, pid=1, just started
|
||||||
redis_1 | 1:C 04 Jan 2021 02:42:22.035 # Configuration loaded
|
redis_1 | 1:C 04 Jan 2022 02:42:22.035 # Configuration loaded
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 * Running mode=standalone, port=6379.
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 * Running mode=standalone, port=6379.
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 # Server initialized
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 # Server initialized
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 * Loading RDB produced by version 6.0.9
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 * Loading RDB produced by version 6.0.9
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 * RDB age 9 seconds
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 * RDB age 9 seconds
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 * RDB memory usage when created 0.77 Mb
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 * RDB memory usage when created 0.77 Mb
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 * DB loaded from disk: 0.000 seconds
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 * DB loaded from disk: 0.000 seconds
|
||||||
redis_1 | 1:M 04 Jan 2021 02:42:22.037 * Ready to accept connections
|
redis_1 | 1:M 04 Jan 2022 02:42:22.037 * Ready to accept connections
|
||||||
example_1 | INFO: Started server process [1]
|
example_1 | INFO: Started server process [1]
|
||||||
example_1 | INFO: Waiting for application startup.
|
example_1 | INFO: Waiting for application startup.
|
||||||
example_1 | INFO: Application startup complete.
|
example_1 | INFO: Application startup complete.
|
||||||
|
|
|
@ -29,15 +29,15 @@ The output should be something like:
|
||||||
|
|
||||||
Starting fastapi-sqlalchemy_webapp_1 ... done
|
Starting fastapi-sqlalchemy_webapp_1 ... done
|
||||||
Attaching to fastapi-sqlalchemy_webapp_1
|
Attaching to fastapi-sqlalchemy_webapp_1
|
||||||
webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
|
webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1
|
||||||
webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine ()
|
webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine ()
|
||||||
webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
|
webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1
|
||||||
webapp_1 | 2021-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine ()
|
webapp_1 | 2022-02-04 22:07:19,804 INFO sqlalchemy.engine.base.Engine ()
|
||||||
webapp_1 | 2021-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine PRAGMA main.table_info("users")
|
webapp_1 | 2022-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine PRAGMA main.table_info("users")
|
||||||
webapp_1 | 2021-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine ()
|
webapp_1 | 2022-02-04 22:07:19,805 INFO sqlalchemy.engine.base.Engine ()
|
||||||
webapp_1 | 2021-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine PRAGMA temp.table_info("users")
|
webapp_1 | 2022-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine PRAGMA temp.table_info("users")
|
||||||
webapp_1 | 2021-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine ()
|
webapp_1 | 2022-02-04 22:07:19,808 INFO sqlalchemy.engine.base.Engine ()
|
||||||
webapp_1 | 2021-02-04 22:07:19,809 INFO sqlalchemy.engine.base.Engine
|
webapp_1 | 2022-02-04 22:07:19,809 INFO sqlalchemy.engine.base.Engine
|
||||||
webapp_1 | CREATE TABLE users (
|
webapp_1 | CREATE TABLE users (
|
||||||
webapp_1 | id INTEGER NOT NULL,
|
webapp_1 | id INTEGER NOT NULL,
|
||||||
webapp_1 | email VARCHAR,
|
webapp_1 | email VARCHAR,
|
||||||
|
@ -49,8 +49,8 @@ The output should be something like:
|
||||||
webapp_1 | )
|
webapp_1 | )
|
||||||
webapp_1 |
|
webapp_1 |
|
||||||
webapp_1 |
|
webapp_1 |
|
||||||
webapp_1 | 2021-02-04 22:07:19,810 INFO sqlalchemy.engine.base.Engine ()
|
webapp_1 | 2022-02-04 22:07:19,810 INFO sqlalchemy.engine.base.Engine ()
|
||||||
webapp_1 | 2021-02-04 22:07:19,821 INFO sqlalchemy.engine.base.Engine COMMIT
|
webapp_1 | 2022-02-04 22:07:19,821 INFO sqlalchemy.engine.base.Engine COMMIT
|
||||||
webapp_1 | INFO: Started server process [8]
|
webapp_1 | INFO: Started server process [8]
|
||||||
webapp_1 | INFO: Waiting for application startup.
|
webapp_1 | INFO: Waiting for application startup.
|
||||||
webapp_1 | INFO: Application startup complete.
|
webapp_1 | INFO: Application startup complete.
|
||||||
|
|
|
@ -13,12 +13,12 @@ class Container(containers.DeclarativeContainer):
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
container = Container()
|
container = Container()
|
||||||
|
|
||||||
container.config.option1.from_value(date(2021, 6, 13))
|
container.config.option1.from_value(date(2022, 3, 13))
|
||||||
container.config.option2.from_value(date(2021, 6, 14))
|
container.config.option2.from_value(date(2022, 3, 14))
|
||||||
|
|
||||||
assert container.config() == {
|
assert container.config() == {
|
||||||
"option1": date(2021, 6, 13),
|
"option1": date(2022, 3, 13),
|
||||||
"option2": date(2021, 6, 14),
|
"option2": date(2022, 3, 14),
|
||||||
}
|
}
|
||||||
assert container.config.option1() == date(2021, 6, 13)
|
assert container.config.option1() == date(2022, 3, 13)
|
||||||
assert container.config.option2() == date(2021, 6, 14)
|
assert container.config.option2() == date(2022, 3, 14)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user