Closed kpitzen closed 3 years ago
Added failing test in https://github.com/schireson/pytest-mock-resources/pull/86, fix maybe incoming
I'm not sure at which point the xfail on the linked test got removed, but it is removed, so i'm reasonably certain this is fixed.
Describe the bug When using a context manager (eg
with connection.redshift_engine.begin() as redshift_connection:
, thecopy
redshift function is no longer patched into the psycopg2 engine.Environment All
To Reproduce Steps to reproduce the behavior: Open a context managed redshift connection:
with connection.redshift_engine.begin() as redshift_connection:
execute a redshift copy statement with non-postgres syntax (include acredentials
argument, for example)Expected behavior The copy statement is executed, and the data from the source appears in the destination.
Actual Behavior
Additional context Feel free to reach out for more context if needed!