Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customize-scrape-do-endpoints - Unit Tests #914

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

codebeaver-ai[bot]
Copy link
Contributor

@codebeaver-ai codebeaver-ai bot commented Feb 1, 2025

CodeBeaver PR Summary

I started working from Allow to customize scrape.do proxy/api endpoints

πŸ”„ 1 test added.
πŸ› No bugs detected in your changes
πŸ› οΈ 0/2 tests passed

πŸ”„ Test Updates

I've added 1 tests. They all pass β˜‘οΈ
New Tests:

  • tests/test_scrape_do.py

No existing tests required updates.

πŸ› Bug Detection

No bugs detected in your changes. Good job!

πŸ› οΈ Test Results

0/2 tests passed ⚠️

tests/graphs/scrape_graph_test.py

View error
ImportError while importing test module '/app/temp_workspace/tests/graphs/scrape_graph_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/graphs/scrape_graph_test.py:10: in <module>
    from scrapegraphai.graphs import ScrapeGraph
E   ImportError: cannot import name 'ScrapeGraph' from 'scrapegraphai.graphs' (/app/temp_workspace/scrapegraphai/graphs/__init__.py)

tests/graphs/scrape_graph_test.py

tests/graphs/xml_scraper_openai_test.py

View error
ImportError while importing test module '/app/temp_workspace/tests/graphs/xml_scraper_openai_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/local/lib/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/graphs/xml_scraper_openai_test.py:10: in <module>
    from scrapegraphai.utils import convert_to_csv, convert_to_json, prettify_exec_info
E   ImportError: cannot import name 'convert_to_csv' from 'scrapegraphai.utils' (/app/temp_workspace/scrapegraphai/utils/__init__.py)

tests/graphs/xml_scraper_openai_test.py

β˜‚οΈ Coverage Improvements

Coverage improvements by file:

  • tests/test_scrape_do.py

    New coverage: 82.35%
    Improvement: +82.35%

🎨 Final Touches

  • I ran the hooks included in the pre-commit config.

Settings | Logs | CodeBeaver

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 1, 2025
Copy link

github-actions bot commented Feb 1, 2025

Dependency Review

βœ… No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@dosubot dosubot bot added the tests Improvements or additions to test label Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:M This PR changes 30-99 lines, ignoring generated files. tests Improvements or additions to test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants