klen / mixer

Mixer -- Is a fixtures replacement. Supported Django, Flask, SqlAlchemy and custom python objects.
Other
939 stars 96 forks source link

Postgres UUID #102

Closed orsinium closed 5 years ago

orsinium commented 6 years ago

Mixer doesn't support sqlalchemy.dialects.postgresql.UUID. I'm make simple hotfix for it based on name. I can't make tests for it because mixer's tests uses only in memory sqlite database.

orsinium commented 6 years ago

Error when i try blend model with UUID field before this fix:

AttributeError: Mixer (<class 'models.Country'>): 'NoneType' object has no attribute '__bases__'
coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.7%) to 81.029% when pulling 5ea83b2079c5db571f806f71997562d722edf7f3 on orsinium:postgres-uuid into 9e773265d5787fac2401f446b5a1acf827638b3d on klen:develop.

coveralls commented 6 years ago

Coverage Status

Coverage decreased (-0.7%) to 81.029% when pulling 5ea83b2079c5db571f806f71997562d722edf7f3 on orsinium:postgres-uuid into 9e773265d5787fac2401f446b5a1acf827638b3d on klen:develop.

klen commented 5 years ago

@orsinium Thank you for the PR. I've fixed this with another commit.

orsinium commented 5 years ago

Thank you :)