This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Generally useful mixins for tests.""" | |
from django.contrib.auth.models import AnonymousUser | |
from django.http import Http404 | |
from django.test import RequestFactory | |
from django.urls import resolve | |
from django.urls.exceptions import Resolver404 | |
class ViewTestMixin(object): | |
"""Mixin with shortcuts for view tests.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
- Add some settings - | |
Log in to your sandbox account and get your API keys plus your merchant ID. | |
""" | |
BRAINTREE_PRODUCTION = False # We'll need this later to switch between the sandbox and live account | |
BRAINTREE_MERCHANT_ID = “your_merchant_id” | |
BRAINTREE_PUBLIC_KEY = “your_public_key” | |
BRAINTREE_PRIVATE_KEY = “your_private_key” |