potiuk commented on code in PR #57702: URL: https://github.com/apache/airflow/pull/57702#discussion_r2501351965
########## airflow-core/tests/unit/security/test_kerberos.py: ########## @@ -24,14 +24,20 @@ import pytest from airflow.security import kerberos -from airflow.security.kerberos import get_kerberos_principal, renew_from_kt +from airflow.security.kerberos import detect_conf_var, get_kerberos_principal, renew_from_kt from tests_common.test_utils.config import conf_vars pytestmark = pytest.mark.db_test class TestKerberos: + @pytest.fixture(autouse=True) + def fresh_detect_conf_var(self): + """Clear cache of kerberos detection function.""" + detect_conf_var.cache_clear() + return None Review Comment: ```suggestion ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
