Skip to content

Commit

Permalink
Configure logging as part of test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
super-cooper committed Nov 24, 2024
1 parent 91bf6f9 commit 5f7792c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/fixtures/general_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import pytest

from memebot import config
from memebot import log

DEFAULT_ENVIRONMENT = os.environ | {
"MEMEBOT_DISCORD_CLIENT_TOKEN": "MOCK_TOKEN",
Expand All @@ -25,6 +26,8 @@ def setup_and_teardown() -> None:
with mock.patch("argparse.ArgumentParser", mock.MagicMock()):
config.populate_config_from_command_line()

log.configure_logging()

# Run test
yield

Expand Down

0 comments on commit 5f7792c

Please sign in to comment.