Skip to content

Plugin loading order with Syrupy #198

@wbyoung

Description

@wbyoung

I have encountered a situation where tests pass locally and fail in CI because the snapshots generated by Syrupy can't be found. I've found a solution to this issue which is to run the tests as pytest -p syrupy (or adding it to addopts under [tool:pytest] in my config).

I'm guessing that if Syrupy is loaded second, that the options to configure the directory override what's setup by pytest_homeassistant_custom_component, but I can't be sure.

I don't know if there's a way to configure this to say it must be loaded after Syrupy, but that would probably be good. If not, maybe it may be useful to document it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions