merge tests together

This commit is contained in:
Matthias 2022-05-15 01:05:49 +02:00
parent 47673c293e
commit d3cc698500
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -496,9 +496,9 @@ class PluginSettingsApiTest(InvenTreeAPITestCase):
self.assertTrue(response.data['type'], 'string')
self.assertTrue(response.data['description'], 'Key required for accessing external API')
def test_invalid_plugin_slug(self):
"""Test that an invalid plugin slug returns a 404"""
# Failure mode tests
# Non - exsistant plugin
url = reverse('api-plugin-setting-detail', kwargs={'plugin': 'doesnotexist', 'key': 'doesnotmatter'})
response = self.get(url, expected_code=404)