Scrapegraph-ai/tests
Tejas Amol Hande dedfa2eaf0
feat: Add tests for RobotsNode and update test setup
- Added pytest fixture to set up the RobotsNode with the initial state.
- Implemented test_robots_node to test the execution of RobotsNode.
- Used unittest.mock.patch to mock the execute method, ensuring faster and more reliable tests without actual network calls.
- Added assertions to verify the correctness of the result and ensure the execute method is called once with the correct arguments.
2024-06-09 19:39:11 +05:30
..
graphs test: Enhance JSON scraping pipeline test 2024-06-07 13:00:54 +05:30
nodes feat: Add tests for RobotsNode and update test setup 2024-06-09 19:39:11 +05:30
utils feat(proxy-rotation): add parse (IP address) or search (from broker) functionality for proxy rotation 2024-05-10 21:09:48 +02:00
Readme.md refactoring of nodes 2024-04-24 21:13:27 +02:00

Test section

Regarding the tests for the folder graphs and nodes it was created a specific repo as a example (link of the repo). The test website is hosted here. Remember to activating Ollama and having installed the LLM on your pc

For running the tests run the command:

pytest