mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
typo fix
This commit is contained in:
parent
d977aac6a0
commit
c5fc8ba6ab
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user