From ebcbdca1b2369213a2ad950430d61b41e3b144d5 Mon Sep 17 00:00:00 2001 From: Gabriel Almeida Date: Sat, 29 Apr 2023 08:28:51 -0300 Subject: [PATCH] added tests --- tests/test_loading.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/test_loading.py diff --git a/tests/test_loading.py b/tests/test_loading.py new file mode 100644 index 0000000..9ff37ac --- /dev/null +++ b/tests/test_loading.py @@ -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