From eb7e9f4703b2cbf4b406a33e9182b05a35ee45e3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 15 May 2022 02:49:08 +0200 Subject: [PATCH] test url args in action --- InvenTree/plugin/base/integration/test_mixins.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/InvenTree/plugin/base/integration/test_mixins.py b/InvenTree/plugin/base/integration/test_mixins.py index 4045d79b2d..b9a66062e3 100644 --- a/InvenTree/plugin/base/integration/test_mixins.py +++ b/InvenTree/plugin/base/integration/test_mixins.py @@ -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