Skip to content

Commit

Permalink
Update mock_dlt_message.py
Browse files Browse the repository at this point in the history
Add storage_timestamp to MockDLTMessage
  • Loading branch information
Marcelo Lopes committed May 3, 2024
1 parent eb290b6 commit de13a80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dltlyse/mock_dlt_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def payload_decoded(self):
def __repr__(self):
return str(self.__dict__)

@property
def storage_timestamp(self):
"""Fake storage timestamp"""
return float("{}.{}".format(self.storageheader.seconds, self.storageheader.microseconds))

class MockStorageHeader(object):
"""Mock DLT storage header for plugin testing"""
Expand Down

0 comments on commit de13a80

Please sign in to comment.