Skip to content

Commit

Permalink
add CommandCompleted event to event unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
QMalcolm committed Mar 16, 2023
1 parent 86b2f84 commit a4c05c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/unit/test_events.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down Expand Up @@ -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=""),
Expand Down

0 comments on commit a4c05c3

Please sign in to comment.