From 54d6915ed7edab1e88fe7268d018b6658a95ede2 Mon Sep 17 00:00:00 2001 From: evilchili Date: Sun, 20 Nov 2022 16:44:33 -0800 Subject: [PATCH] fix coverage pragmas --- groove/db/scanner.py | 2 +- groove/webserver.py | 2 +- pytest.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/groove/db/scanner.py b/groove/db/scanner.py index eeb2f46..3c13ebf 100644 --- a/groove/db/scanner.py +++ b/groove/db/scanner.py @@ -36,7 +36,7 @@ class MediaScanner: return self._glob def find_sources(self, pattern): - return self.root.rglob(pattern) # pragma: no-cover + return self.root.rglob(pattern) # pragma: no cover def import_tracks(self, sources: Iterable) -> None: for path in sources: diff --git a/groove/webserver.py b/groove/webserver.py index d1dd6c9..b6032ae 100644 --- a/groove/webserver.py +++ b/groove/webserver.py @@ -11,7 +11,7 @@ from groove.helper import PlaylistDatabaseHelper server = bottle.Bottle() -def start(host: str, port: int, debug: bool) -> None: +def start(host: str, port: int, debug: bool) -> None: # pragma: no cover """ Start the Bottle app. """ diff --git a/pytest.ini b/pytest.ini index af41aee..10d660a 100644 --- a/pytest.ini +++ b/pytest.ini @@ -2,4 +2,4 @@ env_override_existing_values = 1 env_files = .test_env log_cli_level = DEBUG -addopts = --cov=groove/ --cov-report=term +addopts = --cov=groove/ --cov-report=term-missing