From 49c7e0eaab6fc7a9242054b7d3f375369af9bcdc Mon Sep 17 00:00:00 2001 From: Marco Vinciguerra Date: Thu, 13 Jun 2024 11:04:59 +0200 Subject: [PATCH] fix: test for fetch node --- tests/nodes/fetch_node_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/nodes/fetch_node_test.py b/tests/nodes/fetch_node_test.py index ea0c995d..6f3e6d5c 100644 --- a/tests/nodes/fetch_node_test.py +++ b/tests/nodes/fetch_node_test.py @@ -39,7 +39,7 @@ def test_fetch_json(): input="json", output=["doc"], ) - result = node.execute({"json": "tests/nodes/inputs/example.json"}) + result = node.execute({"json": "inputs/example.json"}) assert result is not None @@ -48,7 +48,7 @@ def test_fetch_xml(): input="xml", output=["doc"], ) - result = node.execute({"xml": "tests/nodes/inputs/books.xml"}) + result = node.execute({"xml": "inputs/books.xml"}) assert result is not None @@ -57,7 +57,7 @@ def test_fetch_csv(): input="csv", output=["doc"], ) - result = node.execute({"csv": "tests/nodes/inputs/username.csv"}) + result = node.execute({"csv": "inputs/username.csv"}) assert result is not None @@ -66,6 +66,6 @@ def test_fetch_txt(): input="txt", output=["doc", "links", "images"], ) - with open("tests/nodes/inputs/plain_html_example.txt") as f: + with open("inputs/plain_html_example.txt") as f: result = node.execute({"txt": f.read()}) assert result is not None