From a4c05c384f235a44b50d44e0aaf528a9e5f50ce1 Mon Sep 17 00:00:00 2001 From: Quigley Malcolm Date: Thu, 16 Mar 2023 12:09:18 -0700 Subject: [PATCH] add CommandCompleted event to event unit tests --- tests/unit/test_events.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/test_events.py b/tests/unit/test_events.py index 01e9e576cd2..88441372a4c 100644 --- a/tests/unit/test_events.py +++ b/tests/unit/test_events.py @@ -1,6 +1,7 @@ import re from typing import TypeVar +from datetime import datetime from dbt.contracts.results import TimingInfo from dbt.events import AdapterLogger, test_types, types from dbt.events.base_types import ( @@ -326,6 +327,7 @@ def test_event_codes(self): types.NoNodesSelected(), types.DepsUnpinned(revision="", git=""), types.NoNodesForSelectionCriteria(spec_raw=""), + types.CommandCompleted(command="", success=True, elapsed=0.1, completed_at=datetime.utcnow()), # W - Node testing ====================== types.CatchableExceptionOnRun(exc=""), types.InternalErrorOnRun(build_path="", exc=""),