log testing state

This commit is contained in:
Matthias 2021-11-13 01:39:41 +01:00
parent 2638ef046d
commit c850269bd7
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -2,6 +2,7 @@
from django.test import TestCase
from django.contrib.auth import get_user_model
from django.conf import settings
class SampleIntegrationPluginTests(TestCase):
@ -16,6 +17,7 @@ class SampleIntegrationPluginTests(TestCase):
def test_view(self):
"""check the function of the custom sample plugin """
print(f'current testing settings: {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')