Skip to content

Commit

Permalink
let logging output go to stdout in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mdreem committed Jun 1, 2020
1 parent 02cd134 commit 2be83cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion tests/test_cli_fetch.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from datetime import datetime

import logging
import sys
from click.testing import CliRunner
from dateutil import tz

Expand All @@ -20,6 +21,8 @@
)
TIMESTAMP_THREE = datetime(year=2019, month=1, day=1, hour=10, minute=3, tzinfo=tz.UTC)

logging.basicConfig(stream=sys.stdout, level=logging.INFO)


class TestFetchCli(TestElasticsearchIntegrationBase):
def test_basic_fetch(self):
Expand Down
5 changes: 4 additions & 1 deletion tests/test_cli_tail.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
from signal import SIGINT
from threading import Timer
from unittest.mock import patch

import logging
import sys
from click.testing import CliRunner
from dateutil import tz

Expand All @@ -27,6 +28,8 @@
)
TIMESTAMP_THREE = datetime(year=2019, month=1, day=1, hour=10, minute=3, tzinfo=tz.UTC)

logging.basicConfig(stream=sys.stdout, level=logging.INFO)


class TestFetchCli(TestElasticsearchIntegrationBase):
def tearDown(self):
Expand Down

0 comments on commit 2be83cc

Please sign in to comment.