mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	merge tests together
This commit is contained in:
		| @@ -496,9 +496,9 @@ class PluginSettingsApiTest(InvenTreeAPITestCase): | |||||||
|         self.assertTrue(response.data['type'], 'string') |         self.assertTrue(response.data['type'], 'string') | ||||||
|         self.assertTrue(response.data['description'], 'Key required for accessing external API') |         self.assertTrue(response.data['description'], 'Key required for accessing external API') | ||||||
|  |  | ||||||
|     def test_invalid_plugin_slug(self): |         # Failure mode tests | ||||||
|         """Test that an invalid plugin slug returns a 404""" |  | ||||||
|  |  | ||||||
|  |         # Non - exsistant plugin | ||||||
|         url = reverse('api-plugin-setting-detail', kwargs={'plugin': 'doesnotexist', 'key': 'doesnotmatter'}) |         url = reverse('api-plugin-setting-detail', kwargs={'plugin': 'doesnotexist', 'key': 'doesnotmatter'}) | ||||||
|  |  | ||||||
|         response = self.get(url, expected_code=404) |         response = self.get(url, expected_code=404) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user