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

Testing: Setup logger #130

Open
1 task done
iopapamanoglou opened this issue Nov 8, 2024 · 0 comments
Open
1 task done

Testing: Setup logger #130

iopapamanoglou opened this issue Nov 8, 2024 · 0 comments

Comments

@iopapamanoglou
Copy link
Contributor

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant