From 0626500cdd94ba30f65d9cf66b1c1906f7574c51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mose=20M=C3=BCller?= Date: Thu, 17 Aug 2023 17:42:44 +0200 Subject: [PATCH] Removing pydase/utils/logging.py from pytest coverage report Changing the environment variable "ENVIRONMENT" does not change the confz configuration. Additionally, the setup_logging file is removing any loggers (line 61). With this, caplog with loguru doesn't work as we are already using some sort of hack to get the loguru logs with pytest. We can therefore not test if the setup_logging function works as expected. --- .coveragerc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index 8c253ec..8f444a2 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,4 +1,6 @@ [report] exclude_lines = pragma: no cover - if TYPE_CHECKING: \ No newline at end of file + if TYPE_CHECKING: +omit = + src/pydase/utils/logging.py \ No newline at end of file