feat: adding test and make commands for testing
This commit is contained in:
parent
eaa2623fc6
commit
498eadefc0
5 changed files with 715 additions and 1 deletions
10
tests/test_loading.py
Normal file
10
tests/test_loading.py
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue