mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
test url args in action
This commit is contained in:
parent
7abdffae0d
commit
eb7e9f4703
@ -227,6 +227,11 @@ class APICallMixinTest(BaseMixinDefinition, TestCase):
|
||||
self.assertTrue(result)
|
||||
self.assertEqual(result['name'], 'morpheus')
|
||||
|
||||
# api_call with filter
|
||||
result = self.mixin.api_call('api/users', url_args={"page": 2})
|
||||
self.assertTrue(result)
|
||||
self.assertEqual(result['page'], 2)
|
||||
|
||||
def test_function_errors(self):
|
||||
"""Test function errors"""
|
||||
# wrongly defined plugins should not load
|
||||
|
Loading…
Reference in New Issue
Block a user