Skip to content

MongoEngine-like custom strategies #2

@gmacon

Description

@gmacon

Right now, if you want to provide a custom strategy for a field which is a few layers deep in the model, you have to explicitly write each level like

documents(Foo, sub_bar=documents(Bar, sub_baz=documents(Baz, baz=strategies.just(42))))

It would be nice if you could instead write

documents(Foo, sub_bar__sub_baz__baz=strategies.just(42))

more like a MongoEngine query.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions