diff --git a/InvenTree/plugins/samples/action/test_samples_action.py b/InvenTree/plugins/samples/action/test_samples_action.py index 76fd5f4c2e..27b4a16150 100644 --- a/InvenTree/plugins/samples/action/test_samples_action.py +++ b/InvenTree/plugins/samples/action/test_samples_action.py @@ -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, diff --git a/InvenTree/plugins/samples/integration/test_samples_integration.py b/InvenTree/plugins/samples/integration/test_samples_integration.py index 014ed9f543..cc39b730df 100644 --- a/InvenTree/plugins/samples/integration/test_samples_integration.py +++ b/InvenTree/plugins/samples/integration/test_samples_integration.py @@ -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')