dbt-labs / dbt-snowflake

dbt-snowflake contains all of the code enabling dbt to work with Snowflake
https://getdbt.com
Apache License 2.0
296 stars 176 forks source link

Update unit test mocks to handle the new `query_id` field #1238

Closed mikealfare closed 1 week ago

mikealfare commented 2 weeks ago

Problem

We added query_id as a new field on the AdapterResponse event. This needs to be a string to pass validation.

Solution

Mock the sfqid method to return a string literal instead of the mocked object it gets via MagicMock.

Checklist

mikealfare commented 2 weeks ago

Kick the CI