This commit is contained in:
Benedikt Bartscher 2024-10-30 20:12:02 +01:00
parent 94de6a0a8d
commit 53e1c730fb
No known key found for this signature in database

View File

@ -73,7 +73,8 @@ def test_guess(type_: GenericType) -> None:
@pytest.mark.parametrize("type_", [Base, Bare])
def test_state(type_: GenericType) -> None:
var = ObjectState.bare
attr_name = type_.__name__.lower()
var = getattr(ObjectState, attr_name)
assert var._var_type is type_
quantity = var.quantity