remove unnecessary settings from tests

This commit is contained in:
Mateusz Sikora 2014-05-06 13:08:15 +02:00
parent 6993e98282
commit 1d9379c43b
2 changed files with 2 additions and 10 deletions

View File

@ -3,8 +3,8 @@ python:
- "2.6"
- "2.7"
env:
- DJANGO=1.5.7 DJANGO_SETTINGS_MODULE="rest_auth.test_settings"
- DJANGO=1.6.4 DJANGO_SETTINGS_MODULE="rest_auth.test_settings"
- DJANGO=1.5.7
- DJANGO=1.6.4
install:
- pip install -q Django==$DJANGO --use-mirrors
script:

View File

@ -1,12 +1,5 @@
import json
import os
import sys
from datetime import datetime, date, time
from urlparse import urlparse
os.environ['DJANGO_SETTINGS_MODULE'] = 'test_settings'
test_dir = os.path.dirname(__file__)
sys.path.insert(0, test_dir)
from django.conf import settings
from django.core.urlresolvers import reverse
@ -15,7 +8,6 @@ from django.test import TestCase
from django.contrib.auth.models import User
from django.contrib.auth import get_user_model
from django.core import mail
from django.core.urlresolvers import resolve
from registration.models import RegistrationProfile
from rest_framework.serializers import _resolve_model