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:
@ -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')
|
||||
|
||||
|
Reference in New Issue
Block a user