assert that plugin testing is enabled

This commit is contained in:
Matthias 2021-11-13 02:02:01 +01:00
parent ff3d9e373c
commit b79f0052a4
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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')