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:
Gabriel Luiz Freitas Almeida 2024-08-22 16:08:47 -03:00 committed by GitHub
commit 6d048b2d2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 44 additions and 50 deletions

View file

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