mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
assert that plugin testing is enabled
This commit is contained in:
parent
ff3d9e373c
commit
b79f0052a4
@ -18,6 +18,7 @@ class SampleIntegrationPluginTests(TestCase):
|
||||
def test_view(self):
|
||||
"""check the function of the custom sample plugin """
|
||||
print(f'current testing settings: {settings.PLUGIN_TESTING}')
|
||||
self.assertTrue(settings.PLUGIN_TESTING)
|
||||
response = self.client.get('/plugin/sample/ho/he/')
|
||||
self.assertEqual(response.status_code, 200)
|
||||
self.assertEqual(response.content, b'Hi there testuser this works')
|
||||
|
Loading…
Reference in New Issue
Block a user