Fix failing TestMarketplace test by ensuring vanilla authentication and authorization

This commit is contained in:
Chuck Harmston 2013-04-05 16:41:47 -05:00
Родитель 2f452f68d1
Коммит 64f68922cc
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -1,4 +1,5 @@
from tastypie import http
from tastypie.authentication import Authentication
from tastypie.authorization import Authorization
from test_utils import RequestFactory
@ -9,7 +10,11 @@ from mkt.api.base import MarketplaceResource
class TestMarketplace(TestCase):
def setUp(self):
self.resource = MarketplaceResource()
# Ensure that we have proper authentication and authorization.
self.resource._meta.authentication = Authentication()
self.resource._meta.authorization = Authorization()
self.request = RequestFactory().post('/')
def test_form_encoded(self):