From f1b5be51181a18f80ae5f7d8995946b5adfa5be7 Mon Sep 17 00:00:00 2001 From: Dhaarani <55541808+DhaaraniCIT@users.noreply.github.com> Date: Fri, 31 Mar 2023 12:01:49 +0530 Subject: [PATCH] advanced serching count changed from 10 to 30 (#401) * advanced serching count changed from 10 to 30 --- apps/quickbooks_online/views.py | 2 +- tests/test_quickbooks_online/test_views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/quickbooks_online/views.py b/apps/quickbooks_online/views.py index 4b257893..4eb9665f 100644 --- a/apps/quickbooks_online/views.py +++ b/apps/quickbooks_online/views.py @@ -953,7 +953,7 @@ def get_queryset(self): if active and active.lower() == 'true': filters['active'] = True - return DestinationAttribute.objects.filter(**filters).order_by('value')[:10] + return DestinationAttribute.objects.filter(**filters).order_by('value')[:30] diff --git a/tests/test_quickbooks_online/test_views.py b/tests/test_quickbooks_online/test_views.py index 858b33d1..a3c8529b 100644 --- a/tests/test_quickbooks_online/test_views.py +++ b/tests/test_quickbooks_online/test_views.py @@ -63,7 +63,7 @@ def test_searched_destination_attributes_view(api_client, test_connection): }) assert response.status_code == 200 response = json.loads(response.content) - assert len(response) == 10 + assert len(response) == 29 def test_qbo_attributes_view(api_client, test_connection):