Skip to content

hook for cache encoding #2899

Closed as not planned
Closed as not planned
@g-k

Description

@g-k

It'd be handy to have a way to set JSON encoding options for the default cacheprovider.

I resorted to patching cache.set from pytest_configure to encode datetime.datetimes.

Is there a cleaner way to do this? Would -p no:_cacheprovider and a custom cache provider be recommended instead?

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: cacherelated to the cache builtin plugintype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions