UT: Use UUID for source in test_pypubsub_event_queue.py

This commit is contained in:
Mike Salvatore 2022-08-10 12:43:20 -04:00
parent ac69e7d25b
commit 2bbe56035d
1 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ EVENT_TAG_2 = "event tag 2"
@dataclass(frozen=True)
class TestEvent1(AbstractEvent):
source: UUID = "f811ad00-5a68-4437-bd51-7b5cc1768ad5"
source: UUID = UUID("f811ad00-5a68-4437-bd51-7b5cc1768ad5")
target: Union[UUID, IPv4Address, None] = None
timestamp: float = 0.0
tags: FrozenSet = frozenset()
@ -25,7 +25,7 @@ class TestEvent1(AbstractEvent):
@dataclass(frozen=True)
class TestEvent2(AbstractEvent):
source: UUID = "e810ad01-6b67-9446-fc58-9b8d717653f7"
source: UUID = UUID("e810ad01-6b67-9446-fc58-9b8d717653f7")
target: Union[UUID, IPv4Address, None] = None
timestamp: float = 0.0
tags: FrozenSet = frozenset()