Closed xThaid closed 1 month ago
Fixtures like configure_profiles and configure_logging from TestCaseWithSimulator are called for every test function in a test class. As a result, for example multiple logging handlers are added and logs are printed many times.
configure_profiles
configure_logging
TestCaseWithSimulator
Solution: add scope="session" to fixture, see: https://docs.pytest.org/en/7.1.x/how-to/fixtures.html#scope-sharing-fixtures-across-classes-modules-packages-or-session
scope="session"
Fixtures like
configure_profiles
andconfigure_logging
fromTestCaseWithSimulator
are called for every test function in a test class. As a result, for example multiple logging handlers are added and logs are printed many times.