PEP fixes

This commit is contained in:
Matthias 2021-11-15 07:47:52 +01:00
parent 7129a35900
commit 45167fe2f0
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 3 additions and 1 deletions

View File

@ -124,6 +124,8 @@ translated_javascript_urls = [
# Integration plugin urls
integration_urls = []
def get_integration_urls():
urls = []
for plugin in settings.INTEGRATION_PLUGINS.values():
@ -131,6 +133,7 @@ def get_integration_urls():
urls.append(plugin.urlpatterns)
return urls
try:
if settings.PLUGIN_TESTING or InvenTreeSetting.get_setting('ENABLE_PLUGINS_URL'):
integration_urls = get_integration_urls()

View File

@ -2,7 +2,6 @@
from django.test import TestCase
from django.contrib.auth import get_user_model
from django.conf import settings
class SampleIntegrationPluginTests(TestCase):