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

@ -7,6 +7,11 @@ from requests.exceptions import MissingSchema
from langflow.utils.validate import create_function, execute_function, extract_function_name, validate_code
@pytest.fixture
def client():
pass
def test_create_function():
code = """
from pathlib import Path