mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
merge tests together
This commit is contained in:
parent
47673c293e
commit
d3cc698500
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user