From cb108cba07758eeab42035f22f951d1c9d281b32 Mon Sep 17 00:00:00 2001 From: Imran Ariffin Date: Sun, 26 Nov 2023 22:30:43 -0500 Subject: [PATCH] Cleanup logging & test script --- src/aiotaskq/__main__.py | 3 --- src/aiotaskq/task.py | 1 - src/aiotaskq/worker.py | 1 - test.sh | 5 ++--- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/aiotaskq/__main__.py b/src/aiotaskq/__main__.py index 4ad5503..0df4982 100755 --- a/src/aiotaskq/__main__.py +++ b/src/aiotaskq/__main__.py @@ -2,7 +2,6 @@ #!/usr/bin/env python -import logging import typing as t import typer @@ -11,8 +10,6 @@ from .interfaces import ConcurrencyType from .worker import Defaults, run_worker_forever -logging.basicConfig(level=logging.DEBUG) - cli = typer.Typer() diff --git a/src/aiotaskq/task.py b/src/aiotaskq/task.py index d2734bc..4c73e8a 100644 --- a/src/aiotaskq/task.py +++ b/src/aiotaskq/task.py @@ -21,7 +21,6 @@ RT = t.TypeVar("RT") P = t.ParamSpec("P") -# logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) diff --git a/src/aiotaskq/worker.py b/src/aiotaskq/worker.py index fa3b0f2..c51e885 100755 --- a/src/aiotaskq/worker.py +++ b/src/aiotaskq/worker.py @@ -22,7 +22,6 @@ from .serde import Serialization from .task import AsyncResult, Task -# logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) diff --git a/test.sh b/test.sh index 6511a3a..b703925 100755 --- a/test.sh +++ b/test.sh @@ -1,10 +1,9 @@ -# pip install --upgrade pip -# pip install -e .[dev] - coverage erase if [ -z $1 ]; then + pip install --upgrade pip + pip install -e .[dev] coverage run -m pytest -v else coverage run -m pytest --log-level=DEBUG --log-cli-level=DEBUG -s -vvv -k $1