Frank Hoffmann
Frank Hoffmann
hi, I'm the author of [inline-snapshot](https://github.com/15r10nk/inline-snapshot) and I found this issue while I was reading through your issues to find inspiration for my own library. Maybe inline-snapshot provides some inspiration...
this is a duplicate of https://github.com/syrusakbary/snapshottest/issues/99
hi, thank you for the kind words :slightly_smiling_face: ### Why not I don't think that inline-snapshot can work without `snapshot()` The separate `snapshot` function provides the hook for the implementation...
> let me know if you have any thoughts... As the author noted, this solution might become a problem if the internal pytest api change. Rewriting the whole module (which...
I have maybe an idea how this can be integrated into inline-snapshot but this would require that we can use inline-snapshot and pytest assert rewriting together (assert rewriting is currently...
I think that the regex approach might become problematic. It might work for this case but there are maybe usecases in the future where the repr string is missing some...
I can do a first implementation today in the evening.
did you wrote the enum class or is it from a other library? you could do the following, if it is your own. ```python from enum import Enum from inline_snapshot...
another more generic approach might be this ```python from enum import Enum from functools import singledispatch from pydantic import BaseModel class SomeEnum(Enum): VAL1 = "val1" a = SomeEnum.VAL1 class PydanticContainer(BaseModel):...
> Some of them are under my control and some are not. I could make the enums under my control to have the custom repr. But how should I go...