File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,3 @@ def test_script_creator_graph(graph_config: dict):
37
37
)
38
38
result = smart_scraper_graph .run ()
39
39
assert result is not None , "ScriptCreatorGraph execution failed to produce a result."
40
- graph_exec_info = smart_scraper_graph .get_execution_info ()
41
- assert graph_exec_info is not None , "ScriptCreatorGraph execution info is None."
42
- prettified_exec_info = prettify_exec_info (graph_exec_info )
43
- print (prettified_exec_info )
44
-
45
- # Perform additional assertions on the result or execution info as needed
Original file line number Diff line number Diff line change 1
1
from scrapegraphai .nodes import FetchNode
2
2
from langchain_core .documents import Document
3
3
4
-
5
4
def test_fetch_html (mocker ):
6
5
title = "ScrapeGraph AI"
7
6
link_url = "https://github.com/VinciGit00/Scrapegraph-ai"
@@ -29,9 +28,10 @@ def test_fetch_html(mocker):
29
28
30
29
mock_loader .load .assert_called_once ()
31
30
doc = result ["doc" ][0 ]
32
- assert title in doc .page_content
33
- assert link_url in result ["links" ]
34
- assert img_url in result ["images" ]
31
+ assert result is not None
32
+ assert "ScrapeGraph AI" in doc .page_content
33
+ assert "https://github.com/VinciGit00/Scrapegraph-ai" in doc .page_content
34
+ assert "https://raw.githubusercontent.com/VinciGit00/Scrapegraph-ai/main/docs/assets/scrapegraphai_logo.png" in doc .page_content
35
35
36
36
37
37
def test_fetch_json ():
You can’t perform that action at this time.
0 commit comments