Skip to content

Commit

Permalink
Format files
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisRayM committed Dec 16, 2020
1 parent 7992ee3 commit 6c38e8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions onadata/apps/api/tests/viewsets/test_data_viewset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1740,7 +1740,9 @@ def test_geojson_format(self):
self.assertEqual(response.status_code, 200)
self.assertEqual(response.data, data)

@patch('onadata.apps.api.viewsets.data_viewset.DataViewSet.paginate_queryset')
@patch(
'onadata.apps.api.viewsets.data_viewset'
'.DataViewSet.paginate_queryset')
def test_retry_on_operational_error(self, mock_paginate_queryset):
self._make_submissions()
view = DataViewSet.as_view({'get': 'list'})
Expand Down Expand Up @@ -2345,7 +2347,8 @@ def test_submission_count_for_day_tracking(self):
self.assertEqual(
form.submission_count_for_today, current_count)

# Confirm submission count isn't deleted if the date_created is different
# Confirm submission count isn't deleted if the
# date_created is different
future_date = c_date - timedelta(days=1)
inst_two.date_created = future_date
inst_two.save()
Expand All @@ -2354,7 +2357,6 @@ def test_submission_count_for_day_tracking(self):
form.submission_count_for_today, current_count
)


def test_data_query_ornull(self):
"""
Test that a user is able to query for null with the
Expand Down
2 changes: 1 addition & 1 deletion onadata/libs/serializers/xform_serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from onadata.libs.utils.cache_tools import (
ENKETO_PREVIEW_URL_CACHE, ENKETO_URL_CACHE, ENKETO_SINGLE_SUBMIT_URL_CACHE,
XFORM_LINKED_DATAVIEWS, XFORM_METADATA_CACHE, XFORM_PERMISSIONS_CACHE,
XFORM_COUNT, XFORM_DATA_VERSIONS)
XFORM_DATA_VERSIONS, XFORM_COUNT)
from onadata.libs.utils.common_tags import (GROUP_DELIMETER_TAG,
REPEAT_INDEX_TAGS)
from onadata.libs.utils.decorators import check_obj
Expand Down

0 comments on commit 6c38e8f

Please sign in to comment.