mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 11:51:39 +03:00
12 lines
210 B
Python
12 lines
210 B
Python
|
from unittest import mock
|
||
|
|
||
|
import demo
|
||
|
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
container = demo.Container()
|
||
|
container.wire(modules=[demo])
|
||
|
|
||
|
with container.api_client.override(mock.Mock()):
|
||
|
demo.main()
|