feat: adding test and make commands for testing

This commit is contained in:
ogabrielluiz 2023-03-10 07:20:40 -03:00
commit 498eadefc0
5 changed files with 715 additions and 1 deletions

10
tests/test_loading.py Normal file
View file

@ -0,0 +1,10 @@
from pathlib import Path
from langflow import load_flow_from_json
def test_load_flow_from_json():
"""Test loading a flow from a json file"""
path = Path(__file__).parent.absolute()
path = f"{path}/data/example_flow.json"
loaded = load_flow_from_json(path)
assert loaded is not None