Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #433 from Sancus/stopcallingbasket
Browse files Browse the repository at this point in the history
[Fix Bug 851633] Stop tests from making real POSTs to basket
  • Loading branch information
Sancus committed Mar 16, 2013
2 parents 165f47c + 0bcfe1f commit f1f5d6e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion settings/default.py
Expand Up @@ -2,6 +2,7 @@

# Django settings for the mozillians project.
import logging
import sys

from funfactory.manage import path
from funfactory import settings_base as base
Expand Down Expand Up @@ -267,7 +268,11 @@
STATSD_CLIENT = 'django_statsd.clients.normal'

# Basket
BASKET_URL = 'http://basket.mozilla.com'
# If we're running tests, don't hit the real basket server.
if 'test' in sys.argv:
BASKET_URL = 'http://127.0.0.1'
else:
BASKET_URL = 'http://basket.mozilla.com'
BASKET_NEWSLETTER = 'mozilla-phone'

USER_AVATAR_DIR = 'uploads/userprofile'
Expand Down
2 changes: 1 addition & 1 deletion settings/local.py-devdist
Expand Up @@ -58,7 +58,7 @@ CACHES = {}
STATSD_CLIENT = 'django_statsd.clients.log'

# Basket
BASKET_URL = None
BASKET_URL = 'http://127.0.0.1'
BASKET_NEWSLETTER = 'mozilla-phone'
BASKET_MANAGERS = None # or list of email addresses.

Expand Down

0 comments on commit f1f5d6e

Please sign in to comment.