Skip to content

Unit tests slow due to APISpec deepcopy #46

@jtc42

Description

@jtc42

Unit tests are really slow once the thing fixture starts being used, because the LabThing object creates APISpec data, which invokes deepcopy. When spawning a bunch of function-scopes instances for testing, this grinds the whole thing to a halt.

Unsure a nice fix, as a module-scopes Thing runs the risk of breaking proper isolated tests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions