Skip to content

Instantly share code, notes, and snippets.

@hpk42
Created September 30, 2013 11:16
Show Gist options
  • Save hpk42/6762357 to your computer and use it in GitHub Desktop.
Save hpk42/6762357 to your computer and use it in GitHub Desktop.
def pytest_load_initial_conftests(parser, args):
ns = parser.parse_known_args(args)
if ns and ns.ds: # orwhatever the option is called
os.environ["DJANGO_SETTINGS"] = ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment