File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 1
1
"""
2
- Module for testinh robot_node
2
+ Module for testinh fetch_node
3
3
"""
4
4
import pytest
5
5
from scrapegraphai .nodes import FetchNode
@@ -14,22 +14,22 @@ def setup():
14
14
# Define the node
15
15
# ************************************************
16
16
17
- robots_node = FetchNode (
17
+ fetch_node = FetchNode (
18
18
input = "url | local_dir" ,
19
19
output = ["doc" ],
20
20
node_config = {
21
21
"headless" : False
22
22
}
23
23
)
24
24
25
- return robots_node
25
+ return fetch_node
26
26
27
27
# ************************************************
28
28
# Test the node
29
29
# ************************************************
30
30
31
31
32
- def test_robots_node (setup ):
32
+ def test_fetch_node (setup ):
33
33
"""
34
34
Run the tests
35
35
"""
@@ -40,8 +40,3 @@ def test_robots_node(setup):
40
40
result = setup .execute (state )
41
41
42
42
assert result is not None
43
-
44
-
45
- # If you need to run this script directly
46
- if __name__ == "__main__" :
47
- pytest .main ()
Original file line number Diff line number Diff line change @@ -55,8 +55,3 @@ def test_robots_node(setup):
55
55
result = setup .execute (state )
56
56
57
57
assert result is not None
58
-
59
-
60
- # If you need to run this script directly
61
- if __name__ == "__main__" :
62
- pytest .main ()
You can’t perform that action at this time.
0 commit comments