View pivot_sql_example.py
""" | |
This is an example python class that can be used to create SQL that will pivot data SQL | |
query-able database (such as Redshift). | |
Note that it uses an Anomalo library, dquality.db, which is not open-sourced. However, | |
you can replace the calls to self.db and DB with the appropriate calls for your warehouse | |
to construct and execute SQL queries. | |
""" | |
import logging |
View retry.py
import functools | |
import logging | |
class RetryTest: | |
""" | |
Decorator for re-trying flickering tests multiple times | |
to attempt to get them to pass. | |
Note that it creates a new copy of the test class for each |