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:
parent
039dbbbe7e
commit
7c0dea69b0
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user