2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00

add test for api_call with full url

This commit is contained in:
Matthias 2022-05-15 02:42:40 +02:00
parent 039dbbbe7e
commit 7c0dea69b0
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -214,6 +214,10 @@ class APICallMixinTest(BaseMixinDefinition, TestCase):
self.assertTrue(result) self.assertTrue(result)
self.assertEqual(result.reason, 'OK') 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): def test_function_errors(self):
"""Test function errors""" """Test function errors"""
# wrongly defined plugins should not load # wrongly defined plugins should not load