mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Stubbing in profile tests.
This commit is contained in:
parent
5dc61fa8c4
commit
6bb652965e
1 changed files with 26 additions and 0 deletions
26
apps/profile/tests.py
Normal file
26
apps/profile/tests.py
Normal file
|
@ -0,0 +1,26 @@
|
|||
from utils import json_functions as json
|
||||
from django.test.client import Client
|
||||
from django.test import TestCase
|
||||
from django.core.urlresolvers import reverse
|
||||
from django.conf import settings
|
||||
from mongoengine.connection import connect, disconnect
|
||||
|
||||
class ProfiuleTest(TestCase):
|
||||
fixtures = ['rss_feeds.json']
|
||||
|
||||
def setUp(self):
|
||||
disconnect()
|
||||
settings.MONGODB = connect('test_newsblur')
|
||||
self.client = Client(HTTP_USER_AGENT='Mozilla/5.0')
|
||||
|
||||
def tearDown(self):
|
||||
settings.MONGODB.drop_database('test_newsblur')
|
||||
|
||||
def test_create_account(self):
|
||||
response = self.client.post(reverse('welcome-signup'), {
|
||||
'signup_username': 'test',
|
||||
'signup_password': 'password',
|
||||
'signup_email': 'test@newsblur.com',
|
||||
})
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue