canonical / pytest-interface-tester

Pytest plugin for checking charm relation interface protocol compliance.
0 stars 4 forks source link

import errors with ops-scenario 7.x #23

Open hemanthnakkina opened 2 months ago

hemanthnakkina commented 2 months ago

Event class is not there in ops-scenario in 7.x and so can see the below error whenever pytest-interface-tester is used. ImportError: cannot import name 'Event' from 'scenario'

https://github.com/canonical/pytest-interface-tester/blob/main/pyproject.toml#L25 should add <7 as well.

hemanthnakkina commented 2 months ago

I see https://github.com/canonical/pytest-interface-tester/pull/21 in progress

IronCore864 commented 1 month ago

PR #21 is merged already. We upgraded Scenario to 7 (specifically, 7.0.5 at the moment). Do you experience the same error? @hemanthnakkina @gruyaume