schireson / pytest-mock-resources

Pytest Fixtures that let you actually test against external resource (Postgres, Mongo, Redshift...) dependent code.
https://pytest-mock-resources.readthedocs.io/en/latest/quickstart.html
MIT License
179 stars 19 forks source link

Remove the pandas dependency. #58

Closed DanCardin closed 5 years ago

DanCardin commented 5 years ago

Some of the weird test changes were due to (afaict) it assuming that empty values ought to be NULL, but (afaict) https://docs.aws.amazon.com/redshift/latest/dg/copy-parameters-data-conversion.html#copy-emptyasnull says EMPTYASNULL needs to be set in order to get that behavior.

So i think this is slightly more representative, assuming people are doing normal style copy, given that we're ignoring the EMPTYASNULL anyways