diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2023-08-21 23:45:14 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2023-08-21 23:45:14 -0600 |
commit | ffe145a6c67afed6fb68326edbc91cbd94a3f846 (patch) | |
tree | 8eb6f354beff2c35d1f823cf058f3fd4c74b49d0 /tests/test_custom_logger.py | |
parent | 5c3b2c158180aa47003c5e82857594afd0c2bd7b (diff) |
feat: fuck it, delete tests
Diffstat (limited to 'tests/test_custom_logger.py')
-rw-r--r-- | tests/test_custom_logger.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/test_custom_logger.py b/tests/test_custom_logger.py deleted file mode 100644 index 9102f52..0000000 --- a/tests/test_custom_logger.py +++ /dev/null @@ -1,19 +0,0 @@ -import pytest -from logging import Logger, DEBUG, INFO, WARNING, ERROR, CRITICAL - - -@pytest.mark.parametrize('log_level, starts_with, message', [ - (DEBUG, '[DEBUG]', 'first message'), - (INFO, 'second message', 'second message'), - (WARNING, '\x1b[33m[WARNING]', 'third message'), - (ERROR, '\x1b[31m[ERROR]', 'fourth message'), - (CRITICAL, '\x1b[31;1m[CRITICAL]', 'fifth message'), -]) -def test_log_levels(log_level: int, - starts_with: str, - message: str, - logger: Logger, - capture_stdout: dict[str, str | int]) -> None: - logger.log(log_level, message) - assert str(capture_stdout['stdout']).startswith(starts_with) - assert message in str(capture_stdout['stdout']) |