Changeset View
Changeset View
Standalone View
Standalone View
swh/core/tests/test_logger.py
# Copyright (C) 2015-2018 The Software Heritage developers | # Copyright (C) 2015-2018 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import logging | import logging | ||||
import os | import os | ||||
import pytest | import pytest | ||||
from swh.core.logger import PostgresHandler | from swh.core.db.logger import PostgresHandler | ||||
from swh.core.tests import SQL_DIR | from swh.core.tests import SQL_DIR | ||||
DUMP_FILE = os.path.join(SQL_DIR, 'log-schema.sql') | DUMP_FILE = os.path.join(SQL_DIR, 'log-schema.sql') | ||||
@pytest.fixture | @pytest.fixture | ||||
def swh_db_logger(postgresql_proc, postgresql): | def swh_db_logger(postgresql_proc, postgresql): | ||||
Show All 32 Lines |