refactor: add fixtures for client in test files to speed them up (#3490)
refactor: Add fixtures for client in test files to speed them up
This commit is contained in:
parent
091baf7f33
commit
6d048b2d2c
9 changed files with 44 additions and 50 deletions
|
|
@ -1,8 +1,14 @@
|
|||
import pytest
|
||||
from langchain_core.documents import Document
|
||||
|
||||
from langflow.schema import Data
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def client():
|
||||
pass
|
||||
|
||||
|
||||
def test_data_initialization():
|
||||
record = Data(text_key="msg", data={"msg": "Hello, World!", "extra": "value"})
|
||||
assert record.msg == "Hello, World!"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue