This commit is contained in:
Matthias 2021-10-03 14:52:36 +02:00
parent d977aac6a0
commit c5fc8ba6ab
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 6 additions and 6 deletions

View File

@ -25,10 +25,10 @@ class SimpleActionPluginTests(TestCase):
def test_function(self):
"""check if functions work """
# test functions
respone = self.client.post('/api/action/', data={'action': "simple", 'data': {'foo': "bar",}})
self.assertEqual(respone.status_code, 200)
response = self.client.post('/api/action/', data={'action': "simple", 'data': {'foo': "bar",}})
self.assertEqual(response.status_code, 200)
self.assertJSONEqual(
str(respone.content, encoding='utf8'),
str(response.content, encoding='utf8'),
{
"action": 'simple',
"result": True,

View File

@ -16,6 +16,6 @@ class SampleIntegrationPluginTests(TestCase):
def test_view(self):
"""check the function of the custom sample plugin """
respone = self.client.get('/plugin/SampleIntegrationPlugin/ho/he/')
self.assertEqual(respone.status_code, 200)
self.assertEqual(respone.content, b'Hi there testuser this works')
response = self.client.get('/plugin/SampleIntegrationPlugin/ho/he/')
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, b'Hi there testuser this works')