Skip to content

Commit 76b0e39

Browse files
committed
update tests
1 parent d359814 commit 76b0e39

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

tests/nodes/fetch_node_test.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Module for testinh robot_node
2+
Module for testinh fetch_node
33
"""
44
import pytest
55
from scrapegraphai.nodes import FetchNode
@@ -14,22 +14,22 @@ def setup():
1414
# Define the node
1515
# ************************************************
1616

17-
robots_node = FetchNode(
17+
fetch_node = FetchNode(
1818
input="url | local_dir",
1919
output=["doc"],
2020
node_config={
2121
"headless": False
2222
}
2323
)
2424

25-
return robots_node
25+
return fetch_node
2626

2727
# ************************************************
2828
# Test the node
2929
# ************************************************
3030

3131

32-
def test_robots_node(setup):
32+
def test_fetch_node(setup):
3333
"""
3434
Run the tests
3535
"""
@@ -40,8 +40,3 @@ def test_robots_node(setup):
4040
result = setup.execute(state)
4141

4242
assert result is not None
43-
44-
45-
# If you need to run this script directly
46-
if __name__ == "__main__":
47-
pytest.main()

tests/nodes/robot_node_test.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,3 @@ def test_robots_node(setup):
5555
result = setup.execute(state)
5656

5757
assert result is not None
58-
59-
60-
# If you need to run this script directly
61-
if __name__ == "__main__":
62-
pytest.main()

0 commit comments

Comments
 (0)