schettino72/sqla_yaml_fixtures

support custom function loaders

Opened this issue · 0 comments

it would be nice to allow custom functions that would read data from yaml file but do not map directly to a model.

- module.load_x
  - name: abc
    value: 3

Where load_x would be a function defined in a python module taking 2 parameters. An ORM session object and the data from the YAML document.