Skip to content

Enforce correct creation of Context #137

@feltech

Description

@feltech

What

Set a flag in the Context.managerState and assert that the same flag exists in the Context passed to each API method

Why

See OpenAssetIO/usdOpenAssetIOResolver#47 where the USD resolver plugin was not creating the Context properly, and it was only when prototyping a feature that required use of the managerState that it became apparent.

By making some use of the managerState, if only to store and check a boolean flag, we could have detected this problem early in the unit tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions