Files
amq-adapter-python/otdemo/otdemo_backend.py
T
Stanislav Hejny 41fbe46129
Unit test coverage / pytest (push) Has been cancelled
/ build-and-push (push) Has been cancelled
Unit test coverage / pytest (pull_request) Failing after 1m51s
feat/#63 - cleverswarm unidirectional command
2025-07-26 15:29:07 +01:00

26 lines
763 B
Python

def print_document_id_static(document_id: str) -> str:
print(f"STATIC Document ID: {document_id}")
return "STATIC PRINTED!"
class Backend:
def __init__(self, name: str, description: str):
self.name = name
self.description = description
def __repr__(self):
return f"Backend(name={self.name}, description={self.description})"
def __str__(self):
return f"{self.name}: {self.description}"
def __eq__(self, other):
if not isinstance(other, Backend):
return False
return self.name == other.name and self.description == other.description
def print_document_id(self, document_id: str) -> str:
print(f"CLASS Document ID: {document_id}")
return "CLASS PRINTED!"