mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-16 20:15:44 +00:00
14 lines
467 B
Python
14 lines
467 B
Python
""" Unit tests for action plugins """
|
|
|
|
from InvenTree.helpers import InvenTreeTestCase
|
|
|
|
|
|
class SampleIntegrationPluginTests(InvenTreeTestCase):
|
|
""" Tests for SampleIntegrationPlugin """
|
|
|
|
def test_view(self):
|
|
"""check the function of the custom sample plugin """
|
|
response = self.client.get('/plugin/sample/ho/he/')
|
|
self.assertEqual(response.status_code, 200)
|
|
self.assertEqual(response.content, b'Hi there testuser this works')
|