Skip to content

Commit 49c7e0e

Browse files
committed
fix: test for fetch node
1 parent 9dd2a63 commit 49c7e0e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/nodes/fetch_node_test.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_fetch_json():
3939
input="json",
4040
output=["doc"],
4141
)
42-
result = node.execute({"json": "tests/nodes/inputs/example.json"})
42+
result = node.execute({"json": "inputs/example.json"})
4343
assert result is not None
4444

4545

@@ -48,7 +48,7 @@ def test_fetch_xml():
4848
input="xml",
4949
output=["doc"],
5050
)
51-
result = node.execute({"xml": "tests/nodes/inputs/books.xml"})
51+
result = node.execute({"xml": "inputs/books.xml"})
5252
assert result is not None
5353

5454

@@ -57,7 +57,7 @@ def test_fetch_csv():
5757
input="csv",
5858
output=["doc"],
5959
)
60-
result = node.execute({"csv": "tests/nodes/inputs/username.csv"})
60+
result = node.execute({"csv": "inputs/username.csv"})
6161
assert result is not None
6262

6363

@@ -66,6 +66,6 @@ def test_fetch_txt():
6666
input="txt",
6767
output=["doc", "links", "images"],
6868
)
69-
with open("tests/nodes/inputs/plain_html_example.txt") as f:
69+
with open("inputs/plain_html_example.txt") as f:
7070
result = node.execute({"txt": f.read()})
7171
assert result is not None

0 commit comments

Comments
 (0)