fix coverage pragmas

This commit is contained in:
evilchili 2022-11-20 16:44:33 -08:00
parent 935cb0a981
commit 54d6915ed7
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ class MediaScanner:
return self._glob return self._glob
def find_sources(self, pattern): 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: def import_tracks(self, sources: Iterable) -> None:
for path in sources: for path in sources:

View File

@ -11,7 +11,7 @@ from groove.helper import PlaylistDatabaseHelper
server = bottle.Bottle() 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. Start the Bottle app.
""" """

View File

@ -2,4 +2,4 @@
env_override_existing_values = 1 env_override_existing_values = 1
env_files = .test_env env_files = .test_env
log_cli_level = DEBUG log_cli_level = DEBUG
addopts = --cov=groove/ --cov-report=term addopts = --cov=groove/ --cov-report=term-missing