Fix failing TestMarketplace test by ensuring vanilla authentication and authorization
This commit is contained in:
Родитель
2f452f68d1
Коммит
64f68922cc
|
@ -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):
|
||||
|
|
Загрузка…
Ссылка в новой задаче