Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Testing: Setup logger #130

Description

@iopapamanoglou

Feature Request

Would be nice to automatically setup logger for tests
This does not work for some reason

# This file is part of the faebryk project
# SPDX-License-Identifier: MIT


import logging

import pytest

from faebryk.libs.logging import setup_basic_logging


# TODO does not work
@pytest.fixture(scope="package", autouse=True)
def setup_logging():
    setup_basic_logging()
    logging.info("Setup logging")
    yield

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions