Coverage for app\core.py: 33%

6 statements  

« prev     ^ index     » next       coverage.py v7.6.1, created at 2024-09-25 15:02 -0300

1"""Core module of app.""" 

2from app.db import get_session 

3from app.models import Task 

4 

5 

6def add(task: Task): 

7 """Add new task.""" 

8 with get_session as session: 

9 session.add(task) 

10 session.commit()