mirror of
https://github.com/langgenius/dify.git
synced 2026-11-11 05:41:09 +08:00
12 lines
264 B
Python
12 lines
264 B
Python
from models.base import DefaultFieldsMixin
|
|
|
|
|
|
class FooModel(DefaultFieldsMixin):
|
|
def __init__(self, id: str) -> None:
|
|
self.id = id
|
|
|
|
|
|
def test_repr() -> None:
|
|
foo_model = FooModel(id="test-id")
|
|
assert repr(foo_model) == "<FooModel(id=test-id)>"
|