Skip to content

Commit 120e12b

Browse files
committed
Add code coverage
1 parent edb3545 commit 120e12b

5 files changed

Lines changed: 90 additions & 5 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ lint:
1212
poetry run ruff openandroidinstaller/ --ignore E501
1313

1414
test:
15-
poetry run pytest tests/
15+
poetry run pytest --cov=openandroidinstaller tests/
1616

1717
app:
1818
poetry run python openandroidinstaller/openandroidinstaller.py

openandroidinstaller/openandroidinstaller.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
Column,
2727
Container,
2828
ElevatedButton,
29-
CircleAvatar,
3029
FloatingActionButton,
3130
Icon,
3231
Image,

openandroidinstaller/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def enable_continue_button(e):
196196
content=Column(
197197
[
198198
Markdown(
199-
f"""
199+
"""
200200
#### Battery level over 80%
201201
Before continuing make sure your device battery level is above 80%.
202202
"""
@@ -220,7 +220,7 @@ def enable_continue_button(e):
220220
content=Column(
221221
[
222222
Markdown(
223-
f"""
223+
"""
224224
#### Disable all device lock codes and fingerprint locks.
225225
"""
226226
),

poetry.lock

Lines changed: 86 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pytest = "^7.1.3"
2121
regex = "^2022.9.13"
2222
schema = "^0.7.5"
2323
py7zr = "^0.20.0"
24+
pytest-cov = "^4.0.0"
2425

2526
[tool.poetry.dev-dependencies]
2627

0 commit comments

Comments
 (0)