From b79f0052a4879bdac3c5c9a95664cd0c57dfdd9c Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 13 Nov 2021 02:02:01 +0100 Subject: [PATCH] assert that plugin testing is enabled --- InvenTree/plugin/samples/integration/test_samples_integration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/plugin/samples/integration/test_samples_integration.py b/InvenTree/plugin/samples/integration/test_samples_integration.py index c5e3577775..df73fe8f93 100644 --- a/InvenTree/plugin/samples/integration/test_samples_integration.py +++ b/InvenTree/plugin/samples/integration/test_samples_integration.py @@ -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')