From 8bdea5654864041f343e2b3919f70a717f9e4d96 Mon Sep 17 00:00:00 2001 From: Emily Rockman Date: Mon, 5 Feb 2024 20:20:13 -0600 Subject: [PATCH] remove fire_event_if_test --- dbt_common/events/functions.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/dbt_common/events/functions.py b/dbt_common/events/functions.py index 6402c791..ad2c40e4 100644 --- a/dbt_common/events/functions.py +++ b/dbt_common/events/functions.py @@ -132,13 +132,6 @@ def fire_event_if( fire_event(lazy_e(), level=level) -# a special case of fire_event_if, to only fire events in our unit/functional tests -def fire_event_if_test( - lazy_e: Callable[[], BaseEvent], level: Optional[EventLevel] = None -) -> None: - fire_event_if(conditional=("pytest" in sys.modules), lazy_e=lazy_e, level=level) - - # top-level method for accessing the new eventing system # this is where all the side effects happen branched by event type # (i.e. - mutating the event history, printing to stdout, logging