Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
############################################################################ | |
# _ | |
# | |_ _ __ ___ _ ___ __ | |
# | __| '_ ` _ \| | | \ \/ / | |
# | |_| | | | | | |_| |> < | |
# \__|_| |_| |_|\__,_/_/\_\ | |
# | |
# Cheatsheets: | |
# https://devhints.io/tmux | |
# `property not found` issue: |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
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' |