< Summary

Class:dependencies.py
Assembly:src
File(s):/home/runner/work/kata-python-minesweeper5/kata-python-minesweeper5/src/dependencies.py
Covered lines:0
Uncovered lines:12
Coverable lines:12
Total lines:16
Line coverage:0% (0 of 12)
Covered branches:0
Total branches:2
Branch coverage:0% (0 of 2)
Tag:20_659826003

File(s)

/home/runner/work/kata-python-minesweeper5/kata-python-minesweeper5/src/dependencies.py

#LineLine coverage
 01from flask import session
 02from flask import Flask
 03from flask_injector import Module, request
 04from injector import Binder
 5
 06from service.minesweeper import MineSweeperService, Session
 7
 8
 09class AppModule(Module):
 010    def __init__(self, app: Flask):
 011        super().__init__()
 012        self.app = app
 13
 014    def configure(self, binder: Binder):
 015        binder.bind(MineSweeperService, to=MineSweeperService, scope=request)
 016        binder.bind(Session, to=lambda: session, scope=request)

Methods/Properties