Skip to content

Instantly share code, notes, and snippets.

Greg Sadetsky gregsadetsky

Block or report user

Report or block gregsadetsky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View annoy_segfault_values.txt
834630;1. 0. 0. 0. 0. 0. 0. 1. 0. 0.
834631;0. 0. 0. 0. 0. 0. 0. 1. 0. 0.
844954;0. 0. 0. 0. 0. 0. 1. 0. 0. 0.
863987;3. 0. 0. 0. 0. 0. 3. 0. 0. 0.
897324;1. 0. 0. 0. 0. 0. 0. 0. 0. 0.
913856;1. 0. 1. 0. 0. 1. 0. 0. 0. 0.
918094;1. 0. 0. 0. 0. 0. 1. 0. 0. 0.
927050;1. 0. 0. 0. 0. 0. 0. 1. 0. 0.
927051;0. 0. 0. 0. 0. 0. 1. 0. 0. 0.
928011;1. 0. 0. 0. 0. 0. 1. 0. 0. 0.
@gregsadetsky
gregsadetsky / settings.py
Last active Apr 26, 2019
See: http://stackoverflow.com/questions/13705328/ -- I was looking for a way to run Selenium tests for a Django app on a staging server hosted on Heroku using a PostgreSQL database. The DjangoTestSuiteRunner creates and destroys the whole database before/after testing, which would not work on Heroku where databases are added via other means (her…
View settings.py
import dj_database_url
TEST_DATABASES = {
'default': dj_database_url.config(env='TEST_DATABASE_URL')
}
# replace path below to point to HerokuTestSuiteRunner class
TEST_RUNNER = 'python.path.to.test_suite_runner.HerokuTestSuiteRunner'
You can’t perform that action at this time.