2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Simplify extended filters

This commit is contained in:
Oliver Walters
2019-05-16 19:14:43 +10:00
parent e1558a7a96
commit b4df96aaee
5 changed files with 4 additions and 37 deletions

View File

@ -105,13 +105,6 @@ class PartAPITest(APITestCase):
url = reverse('api-part-list')
data = {'category': 1}
response = self.client.get(url, data, format='json')
# There should be 1 part in this category
self.assertEqual(len(response.data), 0)
data['include_child_categories'] = 1
# Now request to include child categories
response = self.client.get(url, data, format='json')