You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In dbt-core, we now use an event manager to handle logs. In unit tests, we want to check whether under certain conditions, dbt-core will emit certain type of logs. We have been doing this a lot in functional tests by using the run_and_capture function. In unittest, we should mock the event manager so we can check what fire_event has been called with.
AC:
we have a standard way of checking events in unit test.
a unit test using the new way to check events being fired.
The text was updated successfully, but these errors were encountered:
ChenyuLInx
changed the title
Mock event manager
Create a standard way to mock Logger in Unittest
Apr 15, 2024
ChenyuLInx
changed the title
Create a standard way to mock Logger in Unittest
Create a standard way to check events being fired in Unittest
Apr 15, 2024
In dbt-core, we now use an event manager to handle logs. In unit tests, we want to check whether under certain conditions, dbt-core will emit certain type of logs. We have been doing this a lot in functional tests by using the
run_and_capture
function. In unittest, we should mock the event manager so we can check whatfire_event
has been called with.AC:
The text was updated successfully, but these errors were encountered: