Skip to content

Commit

Permalink
remove fire_event_if_test
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Feb 6, 2024
1 parent 50555ee commit 8bdea56
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions dbt_common/events/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bdea56

Please sign in to comment.