Skip to content

Add tests for import errors where there is missing extra #838

Closed

Description

@vdusek

Problem

  • The test_import_error_handled is currently not functional with the new crawlee._utils.try_import.ImportWrapper.
  • As a result, the test is marked as skipped.

Solution

  • Come up with a way to ensure that ImportError is properly raised when required extras are missing.
  • Extend this testing approach to cover all extras - parsel, beautifulsoup, playwright, and curl-impersonate.

Activity

  1. added
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Dec 20, 2024
  2. janbuchar commented on Dec 20, 2024

    @janbuchar
    Collaborator

    We might want to take care of this on the CI level - I imagine we could run a part of the tests with the extras uninstalled as a separate step.

  3. self-assigned this
    on Feb 15, 2026
  4. added a commit that references this issue on May 15, 2026
    b3b8c59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions