Skip to content

Instantly share code, notes, and snippets.


Jeremy Stanley jeremystan

View GitHub Profile
jeremystan /
Last active Sep 14, 2020
A python class for retrying flickering unit tests up to a maximum number of times.
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
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