This commit is contained in:
Matthias committed 2021-10-03 14:52:36 +02:00
1 parent d977aac6a0
commit c5fc8ba6ab
2 files changed
+6 -6

No files matched your search

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