Importing fixtures with foreign keys and SQLAlchemy?
- by Chris Reid
I've been experimenting with using fixture to load test data sets into my Pylons / PostgreSQL app. This works great except that it fails to properly create foreign keys if they reference an auto increment id field.
My fixture looks like this:
class AuthorsData(DataSet):
class frank_herbert:
first_name = "Frank"
last_name =…