From de13a808179ae1cb213a539354043da0c5f3d49a Mon Sep 17 00:00:00 2001 From: Marcelo Lopes Date: Fri, 3 May 2024 09:37:31 +0100 Subject: [PATCH] Update mock_dlt_message.py Add storage_timestamp to MockDLTMessage --- src/dltlyse/mock_dlt_message.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dltlyse/mock_dlt_message.py b/src/dltlyse/mock_dlt_message.py index 71aa596..7b32b59 100644 --- a/src/dltlyse/mock_dlt_message.py +++ b/src/dltlyse/mock_dlt_message.py @@ -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"""