Skip to content

test: test fail with imgui-bundle #21

@tlambert03

Description

@tlambert03

not on CI, but if you run uv sync && pytest you get:

cls = <class 'scenex.adaptors._pygfx._view.View'>

    def _get_model_type(cls: TypeAliasType) -> type[EventedBase]:
        """Get the model class for a given adaptor class."""
        params = cls.__parameters__
>       if not (ref := params[0].__bound__):
E       IndexError: tuple index out of range

tests/test_model.py:29: IndexError
============================================= short test summary info =============================================
FAILED tests/test_model.py::test_events[Camera0] - IndexError: tuple index out of range
FAILED tests/test_model.py::test_events[Camera1] - IndexError: tuple index out of range
FAILED tests/test_model.py::test_events[Image] - IndexError: tuple index out of range
FAILED tests/test_model.py::test_events[Points] - IndexError: tuple index out of range

while uninstalling imgui-bundle fixes it, I don't think this has anything to do with imgui, but rather a side-effect of spinning up a view for any given fixture scene.

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