Sometimes one would just like to save some attributes of the fixture, not the fixture itself.
For example if the fixture is a dataset, one would like to save its name, or various attributes (size, etc.), but probably not the full dataset itself.
To support this use case I suggest to add a views parameter to @saved_fixture. That parameter would contain a dictionary of {<key>: <procedure>}. For each entry, <procedure> will be applied on the fixture instance, and the result will be stored under <key>.
Sometimes one would just like to save some attributes of the fixture, not the fixture itself.
For example if the fixture is a dataset, one would like to save its name, or various attributes (size, etc.), but probably not the full dataset itself.
To support this use case I suggest to add a
views
parameter to@saved_fixture
. That parameter would contain a dictionary of {<key>
:<procedure>
}. For each entry,<procedure>
will be applied on the fixture instance, and the result will be stored under<key>
.