< Summary

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

File(s)

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

#LineLine coverage
 01from flask import Flask, request
 02from flask_injector import FlaskInjector
 03from injector import Injector
 04from dependencies import AppModule
 05from service.minesweeper import MineSweeperService
 6
 07app = Flask(__name__)
 08app.debug = True
 09app.secret_key = "ABCDEFG"
 10
 11
 012@app.route("/")
 013def index(service: MineSweeperService):
 014    return str(service)
 15
 16
 017@app.route("/click")
 018def click(service: MineSweeperService):
 019    x = int(request.args.get("x"))
 020    y = int(request.args.get("y"))
 021    service.click(x, y)
 022    return str(service)
 23
 24
 025FlaskInjector(app, injector=Injector([AppModule(app)]))

Methods/Properties