mirror of
https://github.com/langgenius/dify.git
synced 2025-12-04 06:47:05 +00:00
12 lines
248 B
Python
12 lines
248 B
Python
|
|
from models.base import DefaultFieldsMixin
|
||
|
|
|
||
|
|
|
||
|
|
class FooModel(DefaultFieldsMixin):
|
||
|
|
def __init__(self, id: str):
|
||
|
|
self.id = id
|
||
|
|
|
||
|
|
|
||
|
|
def test_repr():
|
||
|
|
foo_model = FooModel(id="test-id")
|
||
|
|
assert repr(foo_model) == "<FooModel(id=test-id)>"
|