2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 03:56:43 +00:00

PEP fixes

This commit is contained in:
Oliver Walters 2022-05-01 22:46:50 +10:00
parent d72efc3757
commit e3c3ed28da
2 changed files with 13 additions and 12 deletions

View File

@ -643,6 +643,7 @@ class BaseInvenTreeSetting(models.Model):
def protected(self):
return self.__class__.is_protected(self.key)
def settings_group_options():
"""
Build up group tuple for settings based on your choices

View File

@ -222,8 +222,8 @@ class UserSettingsApiTest(InvenTreeAPITestCase):
Test list URL for user settings
"""
url = reverse('api-user-setting-list')
# test setting with choice
response = self.get(url, expected_code=200)
self.get(url, expected_code=200)
def test_user_setting_boolean(self):
"""