# Path: common/log.py
# class RainbowLogFormatter(logging.Formatter):
# class ContextFilter(logging.Filter):  # pylint: disable=too-few-public-methods
# class PapertrailHandler(logging.handlers.SysLogHandler):
#     def format(self, record):
#     def filter(self, record):
#     def __init__(self, *args, **kwargs):
# def init_logging(level=logging.INFO):


import warnings
import pytest
import api
import models
from common import log
"""
Configuration for py.tests. Does things like setup the database and flask app for individual tests.
https://gist.github.com/alexmic/7857543
"""



warnings.simplefilter("error")  # Make All warnings errors while testing.

# Setup Stream logging for py.test so log messages get output on errors too.
# If something else sets up logging first then this won't trigger.
# For example: db.py calling logging.info() or such.

# Path: common/log.py
# class RainbowLogFormatter(logging.Formatter):
# class ContextFilter(logging.Filter):  # pylint: disable=too-few-public-methods
# class PapertrailHandler(logging.handlers.SysLogHandler):
#     def format(self, record):
#     def filter(self, record):
#     def __init__(self, *args, **kwargs):
# def init_logging(level=logging.INFO):


# Path: tests/conftest.py
import warnings
import pytest
import api
import models
from common import log

"""
Configuration for py.tests. Does things like setup the database and flask app for individual tests.
https://gist.github.com/alexmic/7857543
"""



warnings.simplefilter("error")  # Make All warnings errors while testing.

# Setup Stream logging for py.test so log messages get output on errors too.
# If something else sets up logging first then this won't trigger.
# For example: db.py calling logging.info() or such.

log.init_logging()