Skip to content

Commit

Permalink
added tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ogabrielluiz committed Apr 29, 2023
1 parent 0abd04a commit ebcbdca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_loading.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from langflow import load_flow_from_json
import os

def test_loading():
for json_file in os.listdir('./examples'):
if json_file.endswith('.json'):
flow = load_flow_from_json(f'./examples/{json_file}', build=False)
assert flow is not None

0 comments on commit ebcbdca

Please sign in to comment.