mirror of
https://github.com/ivan-usov-org/bec.git
synced 2025-04-22 02:20:02 +02:00
25 lines
609 B
Python
25 lines
609 B
Python
import pytest
|
|
|
|
from bec_lib import bec_logger
|
|
|
|
### THE NEXT FIXTURE HAS TO BE RE-ACTIVATED ONCE
|
|
### OPHYD "STATUS CALLBACKS" THREADS ARE CLEANED
|
|
### (NEXT OPHYD RELEASE)
|
|
# overwrite threads_check fixture from bec_lib,
|
|
# to have it in autouse
|
|
|
|
# @pytest.fixture(autouse=True)
|
|
# def threads_check(threads_check):
|
|
# yield
|
|
# bec_logger.logger.remove()
|
|
###
|
|
### MEANWHILE, THIS FIXTURE WILL JUST CLEAN LOGGER
|
|
### THREADS, AND THERE WILL BE NO CHECK FOR DANGLING
|
|
### THREADS FOR DEVICE SERVER TESTS (LIKE BEFORE...)
|
|
|
|
|
|
@pytest.fixture(autouse=True)
|
|
def threads_check():
|
|
yield
|
|
bec_logger.logger.remove()
|