Skip to content

Mock is broken in subprocesses on Mac OS #85

@yuyuyureka

Description

@yuyuyureka

https://stackoverflow.com/questions/70425526/mocking-methods-called-within-multiprocessing-doesnt-work-on-mac

On Linux, the default start method is fork, while on MacOS and Windows it is spawn.

So the netbox tests break with the usage of multiprocessing.Pool in cosmo/clients/netbox_v4.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions