MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / xml_content

Function xml_content

tests/graphs/xml_scraper_openai_test.py:36–45  ·  view source on GitHub ↗

Fixture to read the XML file content

()

Source from the content-addressed store, hash-verified

34
35@pytest.fixture
36def xml_content():
37 """
38 Fixture to read the XML file content
39 """
40 FILE_NAME = "inputs/books.xml"
41 curr_dir = os.path.dirname(os.path.realpath(__file__))
42 file_path = os.path.join(curr_dir, FILE_NAME)
43
44 with open(file_path, "r", encoding="utf-8") as file:
45 return file.read()
46
47
48# ************************************************

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected