Skip to content

Commit

Permalink
Merge branch 'v0.6.0' of https://github.com/openhealthcare/opal into …
Browse files Browse the repository at this point in the history
…v0.6.0
  • Loading branch information
fredkingham committed Dec 16, 2015
2 parents efb00d3 + 3b664d7 commit 20ff913
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opal/core/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from django.test import TestCase
from django.test.client import RequestFactory

from opal.core.views import OpalSerializer
from opal.models import UserProfile


Expand Down Expand Up @@ -37,13 +38,13 @@ def user(self):
return self._user

def post_json(self, path, data):
json_data = json.dumps(data, cls=DjangoJSONEncoder)
json_data = json.dumps(data, cls=OpalSerializer)
return self.client.post(
path, content_type='application/json', data=json_data
)

def put_json(self, path, data):
json_data = json.dumps(data, cls=DjangoJSONEncoder)
json_data = json.dumps(data, cls=OpalSerializer)
return self.client.put(path, content_type='application/json', data=json_data)

def assertStatusCode(self, path, expected_status_code):
Expand Down

0 comments on commit 20ff913

Please sign in to comment.