Scrapegraph-ai/tests/graphs
Tejas Amol Hande d845a1ba7d
test: Enhance JSON scraping pipeline test
This commit enhances the test suite for the JSON scraping pipeline by introducing the following improvements:

- Separate configuration from the test code by loading it from a JSON file (config.json)
- Use a parametrized fixture to run the test with multiple configurations automatically
- Read the sample JSON file from a separate inputs directory for better organization
- Add explicit assertions to verify the expected output (list of titles)
- Improve test organization and separation of concerns using fixtures
- Promote better coding practices and make the test suite more extensible

These changes aim to improve the testability, maintainability, and flexibility of the test suite. They make it easier to manage configurations, add or modify test cases, and ensure the robustness of the scraping pipeline. The test suite now follows best practices and is better prepared for future changes and requirements.
2024-06-07 13:00:54 +05:30
..
inputs add csv scraper 2024-05-01 17:20:04 +02:00
scrape_json_ollama.py test: Enhance JSON scraping pipeline test 2024-06-07 13:00:54 +05:30
scrape_plain_text_llama3_test.py refactoring of nodes 2024-04-24 21:13:27 +02:00
scrape_plain_text_mistral_test.py refactoring of nodes 2024-04-24 21:13:27 +02:00
scrape_xml_ollama_test.py fix: examples and graphs 2024-05-02 09:20:46 +02:00
script_generator_test.py add graph 2024-05-17 18:23:50 +02:00
smart_scraper_ernie_test.py support ernie 2024-06-05 17:37:35 +08:00
smart_scraper_ollama_test.py refactoring of nodes 2024-04-24 21:13:27 +02:00