From c635883f1376bb0c4f51b01be00689162c2f8803 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Wed, 10 Jan 2024 15:43:37 -0500 Subject: [PATCH] update test name + readme paths --- dbt_common/events/README.md | 4 ++-- tests/unit/test_core_dbt_utils.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dbt_common/events/README.md b/dbt_common/events/README.md index 78207fc1..a857508d 100644 --- a/dbt_common/events/README.md +++ b/dbt_common/events/README.md @@ -10,7 +10,7 @@ When events are processed via `fire_event`, nearly everything is logged. Whether # Adding a New Event * Add a new message in types.proto, and a second message with the same name + "Msg". The "Msg" message should have two fields, an "info" field of EventInfo, and a "data" field referring to the message name without "Msg" * run the protoc compiler to update types_pb2.py: make proto_types -* Add a wrapping class in core/dbt/event/types.py with a Level superclass plus code and message methods +* Add a wrapping class in dbt_common/event/types.py with a Level superclass plus code and message methods * Add the class to tests/unit/test_events.py We have switched from using betterproto to using google protobuf, because of a lack of support for Struct fields in betterproto. @@ -38,4 +38,4 @@ class PartialParsingDeletedExposure(DebugLevel): After adding a new message in `types.proto`, either: - In the repository root directory: `make proto_types` -- In the `core/dbt/common/events` directory: `protoc -I=. --python_out=. types.proto` +- In the `dbt_common/events` directory: `protoc -I=. --python_out=. types.proto` diff --git a/tests/unit/test_core_dbt_utils.py b/tests/unit/test_core_dbt_utils.py index 55f8cc5e..3a31c60d 100644 --- a/tests/unit/test_core_dbt_utils.py +++ b/tests/unit/test_core_dbt_utils.py @@ -6,7 +6,7 @@ from dbt_common.utils.connection import connection_exception_retry -class TestCoreDbtUtils(unittest.TestCase): +class TestCommonDbtUtils(unittest.TestCase): def test_connection_exception_retry_none(self): Counter._reset() connection_exception_retry(lambda: Counter._add(), 5)