mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 21:25:42 +00:00 
			
		
		
		
	typo fix
This commit is contained in:
		| @@ -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') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user