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"""