mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	Test API info endpoint
This commit is contained in:
		| @@ -36,8 +36,12 @@ class APITests(APITestCase): | |||||||
|  |  | ||||||
|         response = self.client.get(url, format='json') |         response = self.client.get(url, format='json') | ||||||
|  |  | ||||||
|         print(response) |         data = response.json() | ||||||
|         print(dir(response)) |         self.assertIn('server', data) | ||||||
|  |         self.assertIn('version', data) | ||||||
|  |         self.assertIn('instance', data) | ||||||
|  |  | ||||||
|  |         self.assertEquals('InvenTree', data['server']) | ||||||
|  |  | ||||||
|     def test_get_token_fail(self): |     def test_get_token_fail(self): | ||||||
|         """ Ensure that an invalid user cannot get a token """ |         """ Ensure that an invalid user cannot get a token """ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user