Skip to content

Commit bbe93a2

Browse files
committed
Removed commented out code.
1 parent a9d85cb commit bbe93a2

File tree

4 files changed

+1
-20
lines changed

4 files changed

+1
-20
lines changed

example/settings/dev.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@
3939
JSON_API_FORMAT_KEYS = 'camelize'
4040
JSON_API_FORMAT_RELATION_KEYS = 'camelize'
4141
REST_FRAMEWORK = {
42-
# 'PAGINATE_BY': 5,
43-
# 'PAGINATE_BY_PARAM': 'page_size',
44-
# 'MAX_PAGINATE_BY': 100,
4542
'PAGE_SIZE': 5,
46-
# 'PAGINATE_BY_PARAM' should now be in the pagination class
47-
# Same for 'MAX_PAGINATE_BY'.
4843
'EXCEPTION_HANDLER': 'rest_framework_json_api.exceptions.exception_handler',
4944
'DEFAULT_PAGINATION_CLASS':
5045
'rest_framework_json_api.pagination.PageNumberPagination',

example/settings/test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,5 @@
1313
JSON_API_FORMAT_RELATION_KEYS = 'camelize'
1414
JSON_API_PLURALIZE_RELATION_TYPE = True
1515
REST_FRAMEWORK.update({
16-
# 'PAGINATE_BY': 1,
1716
'PAGE_SIZE': 1,
1817
})

example/tests/test_format_keys.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,6 @@ def setUp(self):
1717
super(FormatKeysSetTests, self).setUp()
1818
self.detail_url = reverse('user-detail', kwargs={'pk': self.miles.pk})
1919

20-
# Set the format keys settings.
21-
# The below line is redundant because the default settings already
22-
# use 'camelize'
23-
# setattr(settings, 'JSON_API_FORMAT_KEYS', 'camelize')
24-
# CAMELIZE capitalize the type, needs to be checked
25-
26-
def tearDown(self):
27-
pass
28-
# Remove the format keys settings.
29-
# The below line is redundant because the default settings already
30-
# use 'camelize'
31-
# setattr(settings, 'JSON_API_FORMAT_KEYS', 'camelize')
32-
3320

3421
def test_camelization(self):
3522
"""

example/tests/test_non_paginated_responses.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class NonPaginatedEntryViewSet(EntryViewSet):
7171
view = NonPaginatedEntryViewSet.as_view({'get': 'list'})
7272
response = view(request)
7373
response.render()
74-
# print response.content
74+
7575
content_dump = redump_json(response.content)
7676
expected_dump = dump_json(expected)
7777

0 commit comments

Comments
 (0)