Skip to content

Consider using lazy_object_proxy for service_locator to simplify resetting the test environment #884

@janbuchar

Description

@janbuchar

If service_locator was a lazy_object_proxy, we could just re-set crawlee._service_locator.service_locator to a new instance of ServiceLocator and we wouldn't need to do this here and in crawlee tests (code duplication across different packages is kinda painful)

Originally posted by @janbuchar in apify/apify-sdk-python#355 (comment)

Metadata

Metadata

Assignees

No one assigned

    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