Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update movie lister example
  • Loading branch information
rmk135 committed Nov 15, 2020
commit a7fbbd018afbdbfa4b25b6a54ed893619a4a2358
4 changes: 2 additions & 2 deletions examples/miniapps/movie-lister/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ The output should be something like:
Name Stmts Miss Cover
------------------------------------------
movies/__init__.py 0 0 100%
movies/__main__.py 17 17 0%
movies/__main__.py 18 18 0%
movies/containers.py 9 0 100%
movies/entities.py 7 1 86%
movies/finders.py 26 13 50%
movies/listers.py 8 0 100%
movies/tests.py 24 0 100%
------------------------------------------
TOTAL 91 31 66%
TOTAL 92 32 65%
3 changes: 2 additions & 1 deletion examples/miniapps/movie-lister/movies/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import sys

from dependency_injector.wiring import Provide
from dependency_injector.wiring import inject, Provide

from .listers import MovieLister
from .containers import Container


@inject
def main(lister: MovieLister = Provide[Container.lister]) -> None:
print('Francis Lawrence movies:')
for movie in lister.movies_directed_by('Francis Lawrence'):
Expand Down