From 7c0dea69b08b456125263eef444af8dc237379ba Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 15 May 2022 02:42:40 +0200 Subject: [PATCH] add test for api_call with full url --- InvenTree/plugin/base/integration/test_mixins.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/plugin/base/integration/test_mixins.py b/InvenTree/plugin/base/integration/test_mixins.py index fbce6c70a9..183735686f 100644 --- a/InvenTree/plugin/base/integration/test_mixins.py +++ b/InvenTree/plugin/base/integration/test_mixins.py @@ -214,6 +214,10 @@ class APICallMixinTest(BaseMixinDefinition, TestCase): self.assertTrue(result) self.assertEqual(result.reason, 'OK') + # api_call with full url + result = self.mixin.api_call('https://reqres.in/api/users/2', endpoint_is_url=True) + self.assertTrue(result) + def test_function_errors(self): """Test function errors""" # wrongly defined plugins should not load