test url args in action

This commit is contained in:
Matthias 2022-05-15 02:49:08 +02:00
parent 7abdffae0d
commit eb7e9f4703
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -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