mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-01-31 03:36:41 +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()
|