Skip to content

Commit

Permalink
This breaks, because 3.6.4 - encode/django-rest-framework#5264
Browse files Browse the repository at this point in the history
  • Loading branch information
Pomax committed Dec 16, 2019
1 parent 8d6c75b commit 2646e1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ django-debug-toolbar = "*"
django-environ = "*"
django-filter = "==1.1"
django-storages = "*"
djangorestframework = "==3.6.3"
djangorestframework = "==3.6.4"
factory_boy = "*"
Faker = "*"
google-api-python-client = "*"
Expand Down
8 changes: 4 additions & 4 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions pulseapi/entries/tests/test_member_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,18 +133,15 @@ def test_single_tag_search(self):
response = self.client.get('/api/pulse/entries/?search=curricculum&format=json')
self.assertEqual(response.status_code, 200)
response_data = json.loads(str(response.content, 'utf-8'))
count = response_data['count']
self.assertEqual(count, 2)
self.assertEqual(response_data['count'], 2)

response = self.client.get('/api/pulse/entries/?search=libraries&format=json')
self.assertEqual(response.status_code, 200)
response_data = json.loads(str(response.content, 'utf-8'))
count = response_data['count']
self.assertEqual(count, 2)
self.assertEqual(response_data['count'], 2)

def test_dual_tag_search(self):
response = self.client.get('/api/pulse/entries/?search=curricculum libraries&format=json')
self.assertEqual(response.status_code, 200)
response_data = json.loads(str(response.content, 'utf-8'))
count = response_data['count']
self.assertEqual(count, 1)
self.assertEqual(response_data['count'], 1)

0 comments on commit 2646e1b

Please sign in to comment.